mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08:00
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
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…
Reference in New Issue
Block a user