Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / macro_paste_spacing.c
blob481d457e66a5b131204e3c85991737fea597a5ea
1 // RUN: %clang_cc1 -E %s | FileCheck --strict-whitespace %s
3 #define A x ## y
4 blah
7 // CHECK: {{^}}xy{{$}}
9 #define B(x, y) [v ## w] [ v##w] [v##w ] [w ## x] [ w##x] [w##x ] [x ## y] [ x##y] [x##y ] [y ## z] [ y##z] [y##z ]
10 B(x,y)
11 // CHECK: [vw] [ vw] [vw ] [wx] [ wx] [wx ] [xy] [ xy] [xy ] [yz] [ yz] [yz ]
12 B(x,)
13 // CHECK: [vw] [ vw] [vw ] [wx] [ wx] [wx ] [x] [ x] [x ] [z] [ z] [z ]
14 B(,y)
15 // CHECK: [vw] [ vw] [vw ] [w] [ w] [w ] [y] [ y] [y ] [yz] [ yz] [yz ]
16 B(,)
17 // CHECK: [vw] [ vw] [vw ] [w] [ w] [w ] [] [ ] [ ] [z] [ z] [z ]
19 #define C(x, y, z) [x ## y ## z]
20 C(,,) C(a,,) C(,b,) C(,,c) C(a,b,) C(a,,c) C(,b,c) C(a,b,c)
21 // CHECK: [] [a] [b] [c] [ab] [ac] [bc] [abc]