Add testcase for 69a46b0
that fixed mingw but also fixed the problem for which the testcase is now added.
This commit is contained in:
parent
fe23a14ebb
commit
3980e4a5b9
2 changed files with 14 additions and 0 deletions
12
tests/tests2/105_local_extern.c
Normal file
12
tests/tests2/105_local_extern.c
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
extern int printf(const char *, ...);
|
||||||
|
void f(void);
|
||||||
|
void bar(void) { void f(void); f(); }
|
||||||
|
void foo(void) { extern void f(void); f(); }
|
||||||
|
void f(void) { printf("f\n"); }
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
bar();
|
||||||
|
foo();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
2
tests/tests2/105_local_extern.expect
Normal file
2
tests/tests2/105_local_extern.expect
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
f
|
||||||
|
f
|
||||||
Loading…
Add table
Reference in a new issue