From dca97dd5dab315e82be6dad0d90c51b030bea531 Mon Sep 17 00:00:00 2001 From: Richard Smith <richard-llvm@metafoo.co.uk> Date: Thu, 17 Jan 2013 01:46:13 +0000 Subject: [PATCH] Test that we correctly handle reversion of line splicing etc in raw string literals. As suggested by Sean Silva. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172694 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CXX/lex/lex.pptoken/p3-0x.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/CXX/lex/lex.pptoken/p3-0x.cpp b/test/CXX/lex/lex.pptoken/p3-0x.cpp index 3d56ac17bd5..418a0f3ae3f 100644 --- a/test/CXX/lex/lex.pptoken/p3-0x.cpp +++ b/test/CXX/lex/lex.pptoken/p3-0x.cpp @@ -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"); -- GitLab