annotate clang/test/AST/ast-print-char-literal.cpp @ 207:2e18cbf3894f

LLVM12
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 08 Jun 2021 06:07:14 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -ast-print -std=c++1z %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 char c = u8'1';
anatofuz
parents:
diff changeset
4 char d = '1';
anatofuz
parents:
diff changeset
5 char e = U'1';
anatofuz
parents:
diff changeset
6 char f = L'1';
anatofuz
parents:
diff changeset
7 char g = u'1';
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 template <char c = u8'1'>
anatofuz
parents:
diff changeset
10 void h();
anatofuz
parents:
diff changeset
11
anatofuz
parents:
diff changeset
12 void i() {
anatofuz
parents:
diff changeset
13 h<u8'2'>();
anatofuz
parents:
diff changeset
14 }
anatofuz
parents:
diff changeset
15
anatofuz
parents:
diff changeset
16 char j = '\xFF';
anatofuz
parents:
diff changeset
17
anatofuz
parents:
diff changeset
18 // CHECK: char c = u8'1';
anatofuz
parents:
diff changeset
19 // CHECK-NEXT: char d = '1';
anatofuz
parents:
diff changeset
20 // CHECK-NEXT: char e = U'1';
anatofuz
parents:
diff changeset
21 // CHECK-NEXT: char f = L'1';
anatofuz
parents:
diff changeset
22 // CHECK-NEXT: char g = u'1';
anatofuz
parents:
diff changeset
23
anatofuz
parents:
diff changeset
24 // CHECK: template <char c = u8'1'>
anatofuz
parents:
diff changeset
25
anatofuz
parents:
diff changeset
26 // CHECK: h<u8'2'>();
anatofuz
parents:
diff changeset
27 // CHECK: char j = '\xff';