1 // RUN: %clang_cc1 -E %s | FileCheck -strict-whitespace %s
2 
3 #define M(x, y) #x #y
4 
5 M( f(1, 2), g((x=y++, y)))
6 // CHECK: "f(1, 2)" "g((x=y++, y))"
7 
8 M( {a=1 , b=2;} ) /* A semicolon is not a comma */
9 // CHECK: "{a=1" "b=2;}"
10 
11 M( <, [ ) /* Passes the arguments < and [ */
12 // CHECK: "<" "["
13 
14 M( (,), (...) ) /* Passes the arguments (,) and (...) */
15 // CHECK: "(,)" "(...)"
16 
17 #define START_END(start, end) start c=3; end
18 
19 START_END( {a=1 , b=2;} ) /* braces are not parentheses */
20 // CHECK: {a=1 c=3; b=2;}
21 
22 /*
23  * To pass a comma token as an argument it is
24  * necessary to write:
25  */
26 #define COMMA ,
27 
28 M(a COMMA b, (a, b))
29 // CHECK: "a COMMA b" "(a, b)"
30 
31