macos: add path relative ../lib
[tinycc.git] / tests / tests2 / 104+_inline.c
blob1209fd4664ec828e6581f394172d7436473ab4d9
2 #define GOT(f) \
3 __attribute__((weak)) void f(void); \
4 printf("%d %s\n", !!f, #f);
6 int printf(const char*, ...);
8 void check_exports()
10 // 0
11 GOT(inline_inline_2decl_only)
12 GOT(inline_inline_undeclared)
13 GOT(inline_inline_predeclared)
14 GOT(inline_inline_postdeclared)
15 GOT(inline_inline_prepostdeclared)
16 GOT(inline_inline_undeclared2)
17 GOT(inline_inline_predeclared2)
18 GOT(inline_inline_postdeclared2)
19 GOT(inline_inline_prepostdeclared2)
21 // 1
22 GOT(extern_extern_postdeclared)
23 GOT(extern_extern_postdeclared2)
24 GOT(extern_extern_predeclared)
25 GOT(extern_extern_predeclared2)
26 GOT(extern_extern_prepostdeclared)
27 GOT(extern_extern_prepostdeclared2)
28 GOT(extern_extern_undeclared)
29 GOT(extern_extern_undeclared2)
30 GOT(extern_postdeclared)
31 GOT(extern_postdeclared2)
32 GOT(extern_predeclared)
33 GOT(extern_predeclared2)
34 GOT(extern_prepostdeclared)
35 GOT(extern_undeclared)
36 GOT(extern_undeclared2)
37 GOT(inst2_extern_inline_postdeclared)
38 GOT(inst2_extern_inline_predeclared)
39 GOT(inst3_extern_inline_predeclared)
40 GOT(inst_extern_inline_postdeclared)
41 GOT(inst_extern_inline_predeclared)
42 GOT(main)
43 GOT(noinst_extern_inline_func)
44 GOT(noinst_extern_inline_postdeclared)
45 GOT(noinst_extern_inline_postdeclared2)
46 GOT(noinst_extern_inline_undeclared)
48 // 0
49 GOT(noinst_static_inline_postdeclared)
50 GOT(noinst2_static_inline_postdeclared)
51 GOT(noinst_static_inline_predeclared)
52 GOT(noinst2_static_inline_predeclared)
53 GOT(static_func)