[hackers] [scc] Add basic test for macro argument stringizer || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Sat, 26 Sep 2015 19:52:34 +0200 (CEST)

commit dfda6fe8550bbdbf1176c76cdbc943cc5a6dec86
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Sep 26 19:51:55 2015 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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 _AT_K gK
+}
+*/
+
+#define x(y) #y
+
+int
+main(void)
+{
+ char *p;
+ p = x(hello) " is better than bye";
+
+ return *p;
+}
+
Received on Sat Sep 26 2015 - 19:52:34 CEST

This archive was generated by hypermail 2.3.0 : Sat Sep 26 2015 - 20:00:13 CEST