blob: 9768bc89007aba14ab29242e31b5f244ead915c6 [file] [log] [blame]
Richard Trieub313b342012-06-13 23:15:33 +00001// RUN: %clang_cc1 -std=c++11 -ast-dump %s -triple x86_64-linux-gnu | FileCheck %s
Richard Trieu8ab09da2012-06-13 20:25:24 +00002
3char c8[] = u8"test\0\\\"\t\a\b\234";
Richard Trieue8d41192013-01-31 01:44:26 +00004// CHECK: StringLiteral {{.*}} lvalue u8"test\000\\\"\t\a\b\234"
Richard Trieu8ab09da2012-06-13 20:25:24 +00005
6char16_t c16[] = u"test\0\\\"\t\a\b\234\u1234";
Richard Trieue8d41192013-01-31 01:44:26 +00007// CHECK: StringLiteral {{.*}} lvalue u"test\000\\\"\t\a\b\234\u1234"
Richard Trieu8ab09da2012-06-13 20:25:24 +00008
9char32_t c32[] = U"test\0\\\"\t\a\b\234\u1234\U0010ffff"; // \
Richard Trieue8d41192013-01-31 01:44:26 +000010// CHECK: StringLiteral {{.*}} lvalue U"test\000\\\"\t\a\b\234\u1234\U0010FFFF"
Richard Trieu8ab09da2012-06-13 20:25:24 +000011
12wchar_t wc[] = L"test\0\\\"\t\a\b\234\u1234\xffffffff"; // \
Richard Trieue8d41192013-01-31 01:44:26 +000013// CHECK: StringLiteral {{.*}} lvalue L"test\000\\\"\t\a\b\234\x1234\xFFFFFFFF"