From 91d4db600bd95318c224100f13b79de9fdd5ca79 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Mon, 7 Apr 2014 23:30:57 +0800 Subject: Add new tests for macro nesting --- tests/tests2/64_macro_nesting.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/tests2/64_macro_nesting.c (limited to 'tests/tests2/64_macro_nesting.c') diff --git a/tests/tests2/64_macro_nesting.c b/tests/tests2/64_macro_nesting.c new file mode 100644 index 0000000..44b582f --- /dev/null +++ b/tests/tests2/64_macro_nesting.c @@ -0,0 +1,10 @@ +#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; +} -- cgit v1.3.1