shithub: scc

Download patch

ref: 2181f5b6f64769cc57b8a9872d5f89f0493eb5d0
parent: f40eebe22cd78f1256af2ea86fe9f64a4d74f00e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 26 18:09:05 EDT 2015

Add test for nested expansion in macros

--- /dev/null
+++ b/cc1/tests/test028.c
@@ -1,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");
+}
--