r234111 - Switch test from wchar_t to char32_t

David Majnemer david.majnemer at gmail.com
Sat Apr 4 22:42:03 PDT 2015


Author: majnemer
Date: Sun Apr  5 00:42:02 2015
New Revision: 234111

URL: http://llvm.org/viewvc/llvm-project?rev=234111&view=rev
Log:
Switch test from wchar_t to char32_t

Windows has a 16-bit wchar_t, most Unix platforms have a 32-bit wchar_t.
Use a char32_t to keep the test's output stable.

Modified:
    cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp

Modified: cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp?rev=234111&r1=234110&r2=234111&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx11-ast-print.cpp Sun Apr  5 00:42:02 2015
@@ -40,8 +40,8 @@ const char *p9 = 0x42e3F_fritz;
 const char *p10 = 3.300e+15_fritz;
 
 template <class C, C...> const char *operator"" _suffix();
-// CHECK: const char *PR23120 = operator "" _suffix<wchar_t, 66615>();
-const char *PR23120 = L"𐐷"_suffix;
+// CHECK: const char *PR23120 = operator "" _suffix<char32_t, 66615>();
+const char *PR23120 = U"𐐷"_suffix;
 
 // CHECK: ;
 ;






More information about the cfe-commits mailing list