blob: 7f1953a2dfeb57f647c3908e125e16afe5cf3cc5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//DIAGNOSTIC_TEST:SIMPLE:-E
#define CONCAT(a, b) a ## b
#define A a
#define B b
#define A2 A
#define B2 B
// Gives error (as trys to concat unexpanded input)
// <source>:11:1: error: pasting formed ')CONCAT', an invalid preprocessing token
//
// Old Slang output: aabb ;
CONCAT(CONCAT(A2, A2), CONCAT(B2, B2));
|