[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Lexer / token-concat.cpp
blob57dbae03c1e17ecd63a5eab933c15dee83af00f7
1 // RUN: %clang_cc1 -E -std=c++11 -o - %s | FileCheck %s
3 #define id(x) x
4 id("s")_x // CHECK: "s" _x
5 id(L"s")_x // CHECK: L"s" _x
6 id(u8"s")_x // CHECK: u8"s" _x
7 id(u"s")_x // CHECK: u"s" _x
8 id(U"s")_x // CHECK: U"s" _x
9 id('s')_x // CHECK: 's' _x
10 id(L's')_x // CHECK: L's' _x
11 id(u's')_x // CHECK: u's' _x
12 id(U's')_x // CHECK: U's' _x
13 id("s"_x)_y // CHECK: "s"_x _y
14 id(1.0_)f // CHECK: 1.0_ f
15 id(1.0)_f // CHECK: 1.0 _f
16 id(0xface+)b_count // CHECK: 0xface+ b_count
17 id("s")1 // CHECK: "s"1
18 id("s"_x)1 // CHECK: "s"_x 1
19 id(1)_2_x // CHECK: 1 _2_x