[cfe-commits] r137427 - /cfe/trunk/test/SemaCXX/cxx0x-type-convert-construct.cpp

Craig Topper craig.topper at gmail.com
Thu Aug 11 21:09:37 PDT 2011


Author: ctopper
Date: Thu Aug 11 23:09:37 2011
New Revision: 137427

URL: http://llvm.org/viewvc/llvm-project?rev=137427&view=rev
Log:
Fix a raw string literal test case to actually use a raw string literal.

Modified:
    cfe/trunk/test/SemaCXX/cxx0x-type-convert-construct.cpp

Modified: cfe/trunk/test/SemaCXX/cxx0x-type-convert-construct.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/cxx0x-type-convert-construct.cpp?rev=137427&r1=137426&r2=137427&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/cxx0x-type-convert-construct.cpp (original)
+++ cfe/trunk/test/SemaCXX/cxx0x-type-convert-construct.cpp Thu Aug 11 23:09:37 2011
@@ -9,7 +9,7 @@
   Ustr = U"a UTF-32 string"; // expected-error {{assigning to 'char32_t *' from incompatible type 'const char32_t [16]'}}
 
   char *Rstr;
-  Rstr = "a raw string"; // expected-warning{{conversion from string literal to 'char *' is deprecated}}
+  Rstr = R"foo(a raw string)foo"; // expected-warning{{conversion from string literal to 'char *' is deprecated}}
   wchar_t *LRstr;
   LRstr = LR"foo(a wide raw string)foo"; // expected-warning{{conversion from string literal to 'wchar_t *' is deprecated}}
   char *u8Rstr;





More information about the cfe-commits mailing list