diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-17 01:46:13 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-17 01:46:13 +0000 |
commit | dca97dd5dab315e82be6dad0d90c51b030bea531 (patch) | |
tree | b4cbd6dde92fa54604d7b24f72ea16a9f71b08a5 | |
parent | e5096c8f2f2e64d5ac98531ff9aa952bbe60d5fc (diff) |
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
-rw-r--r-- | test/CXX/lex/lex.pptoken/p3-0x.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/CXX/lex/lex.pptoken/p3-0x.cpp b/test/CXX/lex/lex.pptoken/p3-0x.cpp index 3d56ac17bd..418a0f3ae3 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"); |