reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
// RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s

#define FOO1()
#define FOO2(x)x
#define FOO3(x) x
#define FOO4(x)x x
#define FOO5(x) x x
#define FOO6(x) [x]
#define FOO7(x) [ x]
#define FOO8(x) [x ]

#define TEST(FOO,x) FOO <FOO()> < FOO()> <FOO ()> <FOO( )> <FOO() > <FOO()x> <FOO() x> < FOO()x>

TEST(FOO1,)
// CHECK: FOO1 <> < > <> <> < > <> < > < >

TEST(FOO2,)
// CHECK: FOO2 <> < > <> <> < > <> < > < >

TEST(FOO3,)
// CHECK: FOO3 <> < > <> <> < > <> < > < >

TEST(FOO4,)
// CHECK: FOO4 < > < > < > < > < > < > < > < >

TEST(FOO5,)
// CHECK: FOO5 < > < > < > < > < > < > < > < >

TEST(FOO6,)
// CHECK: FOO6 <[]> < []> <[]> <[]> <[] > <[]> <[] > < []>

TEST(FOO7,)
// CHECK: FOO7 <[ ]> < [ ]> <[ ]> <[ ]> <[ ] > <[ ]> <[ ] > < [ ]>

TEST(FOO8,)
// CHECK: FOO8 <[ ]> < [ ]> <[ ]> <[ ]> <[ ] > <[ ]> <[ ] > < [ ]>