]> granicus.if.org Git - clang/commitdiff
Fix a raw string literal test case to actually use a raw string literal.
authorCraig Topper <craig.topper@gmail.com>
Fri, 12 Aug 2011 04:09:37 +0000 (04:09 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 12 Aug 2011 04:09:37 +0000 (04:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137427 91177308-0d34-0410-b5e6-96231b3b80d8

test/SemaCXX/cxx0x-type-convert-construct.cpp

index f32c8e2014b36fa1c76ad2f9d2308332dc195793..adf1f621ea841b501f66dbc5cde17a586b9a65df 100644 (file)
@@ -9,7 +9,7 @@ void f() {
   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;