diff options
Diffstat (limited to '05/tcc-0.9.27/tests/tests2/64_macro_nesting.c')
-rw-r--r-- | 05/tcc-0.9.27/tests/tests2/64_macro_nesting.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/05/tcc-0.9.27/tests/tests2/64_macro_nesting.c b/05/tcc-0.9.27/tests/tests2/64_macro_nesting.c new file mode 100644 index 0000000..676e5d3 --- /dev/null +++ b/05/tcc-0.9.27/tests/tests2/64_macro_nesting.c @@ -0,0 +1,12 @@ +#include <stdio.h> // printf() + +#define CAT2(a,b) a##b +#define CAT(a,b) CAT2(a,b) +#define AB(x) CAT(x,y) + +int main(void) +{ + int xy = 42; + printf("%d\n", CAT(A,B)(x)); + return 0; +} |