[hackers] [scc] Add test for nested expansion in macros || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 26 Sep 2015 22:09:42 +0200 (CEST)

commit 2181f5b6f64769cc57b8a9872d5f89f0493eb5d0
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Sep 26 22:09:05 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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");
+}
Received on Sat Sep 26 2015 - 22:09:42 CEST

This archive was generated by hypermail 2.3.0 : Sat Sep 26 2015 - 22:12:15 CEST