diff options
Diffstat (limited to 'tests/preprocessor/preproc-stringify-1.slang')
| -rw-r--r-- | tests/preprocessor/preproc-stringify-1.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/preprocessor/preproc-stringify-1.slang b/tests/preprocessor/preproc-stringify-1.slang new file mode 100644 index 000000000..32bfb00cc --- /dev/null +++ b/tests/preprocessor/preproc-stringify-1.slang @@ -0,0 +1,12 @@ +//DIAGNOSTIC_TEST:SIMPLE:-E + +#define A a +#define B b + +// Correct output +// "A B" +// Old Slang output +// # a b ; + +#define STRINGIFY(x) #x +STRINGIFY(A B);
\ No newline at end of file |
