x86_64: Use addend on relocs
[tinycc.git] / tests / tests2 / 77_push_pop_macro.c
blobd38e0bfe33e25e40124f8fc12ff2b1edc498e0f4
1 #include <stdio.h>
3 int main()
5 /* must not affect how #pragma ppop_macro works */
6 #define pop_macro foobar1
8 /* must not affect how #pragma push_macro works */
9 #define push_macro foobar2
11 #undef abort
12 #define abort "111"
13 printf("abort = %s\n", abort);
15 #pragma push_macro("abort")
16 #undef abort
17 #define abort "222"
18 printf("abort = %s\n", abort);
20 #pragma push_macro("abort")
21 #undef abort
22 #define abort "333"
23 printf("abort = %s\n", abort);
25 #pragma pop_macro("abort")
26 printf("abort = %s\n", abort);
28 #pragma pop_macro("abort")
29 printf("abort = %s\n", abort);