2012-06-14 07:15:33 +08:00
|
|
|
// RUN: %clang_cc1 -std=c++11 -ast-dump %s -triple x86_64-linux-gnu | FileCheck %s
|
2012-06-14 04:25:24 +08:00
|
|
|
|
|
|
|
char c8[] = u8"test\0\\\"\t\a\b\234";
|
2013-01-31 09:44:26 +08:00
|
|
|
// CHECK: StringLiteral {{.*}} lvalue u8"test\000\\\"\t\a\b\234"
|
2012-06-14 04:25:24 +08:00
|
|
|
|
|
|
|
char16_t c16[] = u"test\0\\\"\t\a\b\234\u1234";
|
2013-01-31 09:44:26 +08:00
|
|
|
// CHECK: StringLiteral {{.*}} lvalue u"test\000\\\"\t\a\b\234\u1234"
|
2012-06-14 04:25:24 +08:00
|
|
|
|
|
|
|
char32_t c32[] = U"test\0\\\"\t\a\b\234\u1234\U0010ffff"; // \
|
2013-01-31 09:44:26 +08:00
|
|
|
// CHECK: StringLiteral {{.*}} lvalue U"test\000\\\"\t\a\b\234\u1234\U0010FFFF"
|
2012-06-14 04:25:24 +08:00
|
|
|
|
|
|
|
wchar_t wc[] = L"test\0\\\"\t\a\b\234\u1234\xffffffff"; // \
|
2013-01-31 09:44:26 +08:00
|
|
|
// CHECK: StringLiteral {{.*}} lvalue L"test\000\\\"\t\a\b\234\x1234\xFFFFFFFF"
|