From: Craig Topper Date: Fri, 12 Aug 2011 04:09:37 +0000 (+0000) Subject: Fix a raw string literal test case to actually use a raw string literal. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=634a43c272a918f47cfc7dd07c7bd9481772f12e;p=clang Fix a raw string literal test case to actually use a raw string literal. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137427 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/cxx0x-type-convert-construct.cpp b/test/SemaCXX/cxx0x-type-convert-construct.cpp index f32c8e2014..adf1f621ea 100644 --- a/test/SemaCXX/cxx0x-type-convert-construct.cpp +++ b/test/SemaCXX/cxx0x-type-convert-construct.cpp @@ -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;