1 // RUN: clang-pseudo -grammar=cxx -source=%s --print-forest -forest-abbrev=0 | FileCheck %s --implicit-check-not=ambiguous
3 0, // CHECK: := integer-literal
4 0b1011, // CHECK: := integer-literal
5 0777, // CHECK: := integer-literal
6 42_u
, // CHECK: := user-defined-integer-literal
7 0LL, // CHECK: := integer-literal
8 0h
, // CHECK: := user-defined-integer-literal
9 0., // CHECK: := floating-point-literal
10 .2, // CHECK: := floating-point-literal
11 2e1
, // CHECK: := floating-point-literal
12 0x42d, // CHECK: := integer-literal
13 0x42_d
, // CHECK: := user-defined-integer-literal
14 0x42ds
, // CHECK: := user-defined-integer-literal
15 0x1.2p2
,// CHECK: := floating-point-literal
17 "", // CHECK: literal := string-literal
18 L
"", // CHECK: literal := string-literal
19 u8
"", // CHECK: literal := string-literal
20 u
"", // CHECK: literal := string-literal
21 U
"", // CHECK: literal := string-literal
22 R
"()", // CHECK: literal := string-literal
23 uR
"()", // CHECK: literal := string-literal
24 "a" "b", // CHECK: literal := string-literal
25 u8
"a" "b", // CHECK: literal := string-literal
26 u
"a" u
"b", // CHECK: literal := string-literal
27 "a"_u
"b", // CHECK: user-defined-literal := user-defined-string-literal
28 "a"_u u
"b", // CHECK: user-defined-literal := user-defined-string-literal
29 R
"(a)" "\n", // CHECK: literal := string-literal
30 R
"c(a)c"_u u
"\n", // CHECK: user-defined-literal := user-defined-string-literal
32 'a', // CHECK: := character-literal
33 'abc', // CHECK: := character-literal
34 'abcdef', // CHECK: := character-literal
35 u
'a', // CHECK: := character-literal
36 U
'a', // CHECK: := character-literal
37 L
'a', // CHECK: := character-literal
38 L
'abc', // CHECK: := character-literal
39 U
'\u1234',// CHECK: := character-literal
40 '\u1234', // CHECK: := character-literal
41 u
'a'_u
, // CHECK: := user-defined-character-literal