From 01bdb800e32391615afd2929da0c6332e52e963b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 2 Mar 2010 23:09:53 -0800 Subject: [PATCH] Added indirect stringify test. --- unit_tests/preprocessor/output/stringify-operator-indirect | 7 +++++++ .../output/stringify-operator-indirect.correct | 1 + 2 files changed, 8 insertions(+) create mode 100644 unit_tests/preprocessor/output/stringify-operator-indirect create mode 100644 unit_tests/preprocessor/output/stringify-operator-indirect.correct diff --git a/unit_tests/preprocessor/output/stringify-operator-indirect b/unit_tests/preprocessor/output/stringify-operator-indirect new file mode 100644 index 00000000..af79de82 --- /dev/null +++ b/unit_tests/preprocessor/output/stringify-operator-indirect @@ -0,0 +1,7 @@ +// Should produce RIGHT and not WRONG. +#define WRONG RIGHT +#define STRINGIFY2(x) #x +#define STRINGIFY(x) STRINGIFY2(x) + +STRINGIFY(WRONG) + diff --git a/unit_tests/preprocessor/output/stringify-operator-indirect.correct b/unit_tests/preprocessor/output/stringify-operator-indirect.correct new file mode 100644 index 00000000..9a3b91dd --- /dev/null +++ b/unit_tests/preprocessor/output/stringify-operator-indirect.correct @@ -0,0 +1 @@ +"RIGHT"