summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp/char1632_t/main.cpp
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-01-10 22:08:35 +0000
committerEnrico Granata <egranata@apple.com>2013-01-10 22:08:35 +0000
commitf68df12fb039d5177e34f4541fa242b891949db6 (patch)
tree2d1276ea2c339b9417faf19cf737c1911fa24f4f /lldb/test/lang/cpp/char1632_t/main.cpp
parent56df644323a5a808cb5559c519ddfc747fcc2eb8 (diff)
downloadbcm5719-llvm-f68df12fb039d5177e34f4541fa242b891949db6.tar.gz
bcm5719-llvm-f68df12fb039d5177e34f4541fa242b891949db6.zip
<rdar://problem/12725746>
Providing data formatters for char16_t* and char32_t* C++11-style Unicode strings Using this chance to refactor the UTF data reader used for data formatters for added generality Added a relevant test case llvm-svn: 172119
Diffstat (limited to 'lldb/test/lang/cpp/char1632_t/main.cpp')
-rw-r--r--lldb/test/lang/cpp/char1632_t/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/lldb/test/lang/cpp/char1632_t/main.cpp b/lldb/test/lang/cpp/char1632_t/main.cpp
new file mode 100644
index 00000000000..fda951a7899
--- /dev/null
+++ b/lldb/test/lang/cpp/char1632_t/main.cpp
@@ -0,0 +1,21 @@
+//===-- main.c --------------------------------------------------*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+
+int main (int argc, char const *argv[])
+{
+ auto cs16 = u"hello world ྒྙྐ";
+ auto cs32 = U"hello world ྒྙྐ";
+ char16_t *s16 = (char16_t *)u"ﺸﺵۻ";
+ char32_t *s32 = (char32_t *)U"ЕЙРГЖО";
+ s32 = nullptr; // Set break point at this line.
+ s32 = (char32_t *)U"෴";
+ s16 = (char16_t *)u"色ハ匂ヘト散リヌルヲ";
+ return 0;
+}
OpenPOWER on IntegriCloud