shithub: scc

Download patch

ref: dfda6fe8550bbdbf1176c76cdbc943cc5a6dec86
parent: 20cea36cf1e5f8278cd79cd3e9b7905bfbac483e
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Sep 26 15:51:55 EDT 2015

Add basic test for macro argument stringizer

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