Test that we correctly handle reversion of line splicing etc in raw string
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jan 2013 01:46:13 +0000 (01:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 17 Jan 2013 01:46:13 +0000 (01:46 +0000)
literals. As suggested by Sean Silva.

llvm-svn: 172694

clang/test/CXX/lex/lex.pptoken/p3-0x.cpp

index 3d56ac1..418a0f3 100644 (file)
@@ -9,3 +9,7 @@ template void f<::b>();
 
 #define x a<:: ## : b :>
 int d = x; // expected-error {{pasting formed ':::', an invalid preprocessing token}} expected-error {{expected unqualified-id}}
+
+const char xs[] = R"(\
+??=\U0000)";
+static_assert(sizeof(xs) == 12, "did not revert all changes");