aboutsummaryrefslogtreecommitdiff
path: root/tests/tests2/64_macro_nesting.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tests2/64_macro_nesting.c')
-rw-r--r--tests/tests2/64_macro_nesting.c10
1 files changed, 10 insertions, 0 deletions
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;
+}