summaryrefslogtreecommitdiff
path: root/clang/test/CodeGenCXX/debug-info-char16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-char16.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-char16.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-char16.cpp b/clang/test/CodeGenCXX/debug-info-char16.cpp
new file mode 100644
index 0000000..24216f9
--- /dev/null
+++ b/clang/test/CodeGenCXX/debug-info-char16.cpp
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -emit-llvm -std=c++11 -g %s -o -| FileCheck %s
+
+// 16 is DW_ATE_UTF (0x10) encoding attribute.
+char16_t char_a = u'h';
+
+// CHECK: !7 = metadata !{i32 {{.*}}, null, metadata !"char16_t", null, i32 0, i64 16, i64 16, i64 0, i32 0, i32 16} ; [ DW_TAG_base_type ]