summaryrefslogtreecommitdiff
path: root/tests/current-bugs/preproc-stringify-1.slang
blob: 03e8366b51c14ca229f6ce2534c39671bb6e9227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);