• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
2 
3 #define FOO1()
4 #define FOO2(x)x
5 #define FOO3(x) x
6 #define FOO4(x)x x
7 #define FOO5(x) x x
8 #define FOO6(x) [x]
9 #define FOO7(x) [ x]
10 #define FOO8(x) [x ]
11 
12 #define TEST(FOO,x) FOO <FOO()> < FOO()> <FOO ()> <FOO( )> <FOO() > <FOO()x> <FOO() x> < FOO()x>
13 
14 TEST(FOO1,)
15 // CHECK: FOO1 <> < > <> <> < > <> < > < >
16 
17 TEST(FOO2,)
18 // CHECK: FOO2 <> < > <> <> < > <> < > < >
19 
20 TEST(FOO3,)
21 // CHECK: FOO3 <> < > <> <> < > <> < > < >
22 
23 TEST(FOO4,)
24 // CHECK: FOO4 < > < > < > < > < > < > < > < >
25 
26 TEST(FOO5,)
27 // CHECK: FOO5 < > < > < > < > < > < > < > < >
28 
29 TEST(FOO6,)
30 // CHECK: FOO6 <[]> < []> <[]> <[]> <[] > <[]> <[] > < []>
31 
32 TEST(FOO7,)
33 // CHECK: FOO7 <[ ]> < [ ]> <[ ]> <[ ]> <[ ] > <[ ]> <[ ] > < [ ]>
34 
35 TEST(FOO8,)
36 // CHECK: FOO8 <[ ]> < [ ]> <[ ]> <[ ]> <[ ] > <[ ]> <[ ] > < [ ]>
37