teak-llvm/lldb/packages/Python/lldbsuite/test/lang/cpp/unicode-literals/main.cpp
Sean Callanan abece15858 Renamed TestRdar12991846 to the more descriptive TestUnicodeLiterals.
Test cases should not be named after PR or Radar numbers.  It's fine to
annotate them with these numbers in comments, however.

llvm-svn: 260699
2016-02-12 18:42:00 +00:00

22 lines
715 B
C++

//===-- 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;
}