commit 2181f5b6f64769cc57b8a9872d5f89f0493eb5d0
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Sep 26 22:09:05 2015 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Sat Sep 26 22:09:05 2015 +0200

    Add test for nested expansion in macros

diff --git a/cc1/tests/test028.c b/cc1/tests/test028.c
new file mode 100644
index 0000000..2c1b4fe
--- /dev/null
+++ b/cc1/tests/test028.c
@@ -0,0 +1,22 @@
+
+/*
+name: TEST028
+description: Test of reinterpretation in define
+output:
+F5
+G6     F5      foo
+{
+\
+       r       "6869   'P
+}
+*/
+
+
+#define M(x) x
+#define A(a,b) a(b)
+
+char *
+foo(void)
+{
+       return A(M,"hi");
+}

Reply via email to