aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-18 00:29:20 -0700
committerMichael Forney <mforney@mforney.org>2020-03-18 00:29:20 -0700
commit9b0d3e51d78f211a99c79ad96e6849481372f4e1 (patch)
treeccb4105cd5009ab3d1b048f243b81eea49319036 /test
parentdf5c3cf3c53f91e4135508cd9925784b4b2d842c (diff)
downloadcproc-9b0d3e51d78f211a99c79ad96e6849481372f4e1.tar.xz
pp: Finish '#' operator
Diffstat (limited to 'test')
-rw-r--r--test/preprocess-macro-stringize-2.c5
-rw-r--r--test/preprocess-macro-stringize-2.pp3
2 files changed, 8 insertions, 0 deletions
diff --git a/test/preprocess-macro-stringize-2.c b/test/preprocess-macro-stringize-2.c
new file mode 100644
index 0000000..81862b6
--- /dev/null
+++ b/test/preprocess-macro-stringize-2.c
@@ -0,0 +1,5 @@
+#define str(x) # x
+str(@)
+str(12 x- 3
+ abc)
+str('"' "\\")
diff --git a/test/preprocess-macro-stringize-2.pp b/test/preprocess-macro-stringize-2.pp
new file mode 100644
index 0000000..1dad46c
--- /dev/null
+++ b/test/preprocess-macro-stringize-2.pp
@@ -0,0 +1,3 @@
+"@"
+"12 x- 3 abc"
+"'\"' \"\\\\\""