diff options
Diffstat (limited to 'tests/current-bugs/preproc-stringify-1.slang')
| -rw-r--r-- | tests/current-bugs/preproc-stringify-1.slang | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/current-bugs/preproc-stringify-1.slang b/tests/current-bugs/preproc-stringify-1.slang new file mode 100644 index 000000000..03e8366b5 --- /dev/null +++ b/tests/current-bugs/preproc-stringify-1.slang @@ -0,0 +1,14 @@ +//DIAGNOSTIC_TEST:SIMPLE:-E + +// NOTE! This test should *fail*, if preprocessor is working correctly! + +#define A a +#define B b + +// Correct output +// "A B" +// Slang output +// # a b ; + +#define STRINGIFY(x) #x +STRINGIFY(A B);
\ No newline at end of file |
