xref: /minix3/external/bsd/llvm/dist/clang/test/Lexer/token-concat.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -E -std=c++11 -o - %s | FileCheck %s
2*f4a2713aSLionel Sambuc 
3*f4a2713aSLionel Sambuc #define id(x) x
4*f4a2713aSLionel Sambuc id("s")_x // CHECK: "s" _x
5*f4a2713aSLionel Sambuc id(L"s")_x // CHECK: L"s" _x
6*f4a2713aSLionel Sambuc id(u8"s")_x // CHECK: u8"s" _x
7*f4a2713aSLionel Sambuc id(u"s")_x // CHECK: u"s" _x
8*f4a2713aSLionel Sambuc id(U"s")_x // CHECK: U"s" _x
9*f4a2713aSLionel Sambuc id('s')_x // CHECK: 's' _x
10*f4a2713aSLionel Sambuc id(L's')_x // CHECK: L's' _x
11*f4a2713aSLionel Sambuc id(u's')_x // CHECK: u's' _x
12*f4a2713aSLionel Sambuc id(U's')_x // CHECK: U's' _x
13*f4a2713aSLionel Sambuc id("s"_x)_y // CHECK: "s"_x _y
14*f4a2713aSLionel Sambuc id(1.0_)f // CHECK: 1.0_ f
15*f4a2713aSLionel Sambuc id(1.0)_f // CHECK: 1.0 _f
16*f4a2713aSLionel Sambuc id(0xface+)b_count // CHECK: 0xface+ b_count
17*f4a2713aSLionel Sambuc id("s")1 // CHECK: "s"1
18*f4a2713aSLionel Sambuc id("s"_x)1 // CHECK: "s"_x 1
19*f4a2713aSLionel Sambuc id(1)_2_x // CHECK: 1 _2_x
20