Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / macro_space.c
blob0734bca9ea59a25c67dc15af074216dccc8660dd
1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
2 // RUN: %clang_cc1 -E -P -fminimize-whitespace %s | FileCheck --strict-whitespace %s --check-prefix=MINWS
4 #define FOO1()
5 #define FOO2(x)x
6 #define FOO3(x) x
7 #define FOO4(x)x x
8 #define FOO5(x) x x
9 #define FOO6(x) [x]
10 #define FOO7(x) [ x]
11 #define FOO8(x) [x ]
13 #define TEST(FOO,x) FOO <FOO()> < FOO()> <FOO ()> <FOO( )> <FOO() > <FOO()x> <FOO() x> < FOO()x>
15 TEST(FOO1,)
16 // CHECK: FOO1 <> < > <> <> < > <> < > < >
17 // MINWS: FOO1<><><><><><><><>
19 TEST(FOO2,)
20 // CHECK: FOO2 <> < > <> <> < > <> < > < >
21 // MINWS-SAME: FOO2<><><><><><><><>
23 TEST(FOO3,)
24 // CHECK: FOO3 <> < > <> <> < > <> < > < >
25 // MINWS-SAME: FOO3<><><><><><><><>
27 TEST(FOO4,)
28 // CHECK: FOO4 < > < > < > < > < > < > < > < >
29 // MINWS-SAME: FOO4<><><><><><><><>
31 TEST(FOO5,)
32 // CHECK: FOO5 < > < > < > < > < > < > < > < >
33 // MINWS-SAME: FOO5<><><><><><><><>
35 TEST(FOO6,)
36 // CHECK: FOO6 <[]> < []> <[]> <[]> <[] > <[]> <[] > < []>
37 // MINWS-SAME: FOO6<[]><[]><[]><[]><[]><[]><[]><[]>
39 TEST(FOO7,)
40 // CHECK: FOO7 <[ ]> < [ ]> <[ ]> <[ ]> <[ ] > <[ ]> <[ ] > < [ ]>
41 // MINWS-SAME: FOO7<[]><[]><[]><[]><[]><[]><[]><[]>
43 TEST(FOO8,)
44 // CHECK: FOO8 <[ ]> < [ ]> <[ ]> <[ ]> <[ ] > <[ ]> <[ ] > < [ ]>
45 // MINWS-SAME: FOO8<[]><[]><[]><[]><[]><[]><[]><[]>