add clang
This commit is contained in:
parent
4715742aa8
commit
9a4b261179
890 changed files with 229323 additions and 20 deletions
43
05/tcc-final/tests/tests2/113_btdll.c
Normal file
43
05/tcc-final/tests/tests2/113_btdll.c
Normal file
|
@ -0,0 +1,43 @@
|
|||
int tcc_backtrace(const char*, ...);
|
||||
#define hello() \
|
||||
tcc_backtrace("hello from %s() / %s:%d",__FUNCTION__,__FILE__,__LINE__)
|
||||
|
||||
#ifndef _WIN32
|
||||
# define __declspec(n)
|
||||
#endif
|
||||
|
||||
#if DLL==1
|
||||
__declspec(dllexport) int f_1()
|
||||
{
|
||||
hello();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#elif DLL==2
|
||||
__declspec(dllexport) int f_2()
|
||||
{
|
||||
hello();
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
|
||||
int f_1();
|
||||
int f_2();
|
||||
int f_main()
|
||||
{
|
||||
hello();
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main ()
|
||||
{
|
||||
f_1();
|
||||
f_2();
|
||||
f_main();
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue