From 9b0d3e51d78f211a99c79ad96e6849481372f4e1 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 18 Mar 2020 00:29:20 -0700 Subject: pp: Finish '#' operator --- test/preprocess-macro-stringize-2.c | 5 +++++ test/preprocess-macro-stringize-2.pp | 3 +++ 2 files changed, 8 insertions(+) create mode 100644 test/preprocess-macro-stringize-2.c create mode 100644 test/preprocess-macro-stringize-2.pp (limited to 'test') 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" +"'\"' \"\\\\\"" -- cgit v1.2.3