tcc -MD: drop system includes and duplicates
[tinycc.git] / tests / tests2 / 113_btdll.c
blob8ae898167d22c0b0a571e97b160c8b4f2bbda07f
1 int tcc_backtrace(const char*, ...);
2 #define hello() \
3 tcc_backtrace("hello from %s() / %s:%d",__FUNCTION__,__FILE__,__LINE__)
5 #ifndef _WIN32
6 # define __declspec(n)
7 #endif
9 #if DLL==1
10 __declspec(dllexport) int f_1()
12 hello();
13 return 0;
17 #elif DLL==2
18 __declspec(dllexport) int f_2()
20 hello();
21 return 0;
25 #else
27 int f_1();
28 int f_2();
29 int f_main()
31 hello();
32 return 0;
35 int main ()
37 f_1();
38 f_2();
39 f_main();
40 return 0;
43 #endif