commit dfda6fe8550bbdbf1176c76cdbc943cc5a6dec86
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Sat Sep 26 19:51:55 2015 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Sat Sep 26 19:51:55 2015 +0200

    Add basic test for macro argument stringizer

diff --git a/cc1/tests/test027.c b/cc1/tests/test027.c
new file mode 100644
index 0000000..ae45f81
--- /dev/null
+++ b/cc1/tests/test027.c
@@ -0,0 +1,26 @@
+
+/*
+name: TEST027
+description: Test of cpp stringizer
+output:
+F2
+G3     F2      main
+{
+\
+A5     P       p
+       A5      "68656C6C6F20697320626574746572207468616E20627965       'P      
:P
+       r       A5      @K      gK
+}
+*/
+
+#define x(y) #y
+
+int
+main(void)
+{
+       char *p;
+       p = x(hello)  " is better than bye";
+
+       return *p;
+}
+

Reply via email to