[cfe-commits] r172694 - /cfe/trunk/test/CXX/lex/lex.pptoken/p3-0x.cpp

Richard Smith richard-llvm at metafoo.co.uk
Wed Jan 16 17:46:14 PST 2013


Author: rsmith
Date: Wed Jan 16 19:46:13 2013
New Revision: 172694

URL: http://llvm.org/viewvc/llvm-project?rev=172694&view=rev
Log:
Test that we correctly handle reversion of line splicing etc in raw string
literals. As suggested by Sean Silva.

Modified:
    cfe/trunk/test/CXX/lex/lex.pptoken/p3-0x.cpp

Modified: cfe/trunk/test/CXX/lex/lex.pptoken/p3-0x.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CXX/lex/lex.pptoken/p3-0x.cpp?rev=172694&r1=172693&r2=172694&view=diff
==============================================================================
--- cfe/trunk/test/CXX/lex/lex.pptoken/p3-0x.cpp (original)
+++ cfe/trunk/test/CXX/lex/lex.pptoken/p3-0x.cpp Wed Jan 16 19:46:13 2013
@@ -9,3 +9,7 @@
 
 #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");





More information about the cfe-commits mailing list