summaryrefslogtreecommitdiffstats
path: root/tests/preprocessor/preproc-concat-2.slang
blob: b965eeaa30ee5630ed9557269c98a7262e07a143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//DIAGNOSTIC_TEST:SIMPLE:-E

#define CONCAT(a, b) a ## b

#define A a
#define B b

#define A2 A
#define B2 B

// Correct output: a A2B2 b;
// Old Slang output 
// a ab b ;

CONCAT(A2 A2, B2 B2);