summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-17 01:46:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-17 01:46:13 +0000
commit7fc772c0bd955a82f006e359adb8c9817d7ab810 (patch)
tree27761dbfdc8907d9855ecedcff6520546f7101b8 /clang/test
parent2ae0164fba90673ca47f1e5c8e0871425f747c48 (diff)
downloadbcm5719-llvm-7fc772c0bd955a82f006e359adb8c9817d7ab810.tar.gz
bcm5719-llvm-7fc772c0bd955a82f006e359adb8c9817d7ab810.zip
Test that we correctly handle reversion of line splicing etc in raw string
literals. As suggested by Sean Silva. llvm-svn: 172694
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CXX/lex/lex.pptoken/p3-0x.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/CXX/lex/lex.pptoken/p3-0x.cpp b/clang/test/CXX/lex/lex.pptoken/p3-0x.cpp
index 3d56ac17bd5..418a0f3ae3f 100644
--- a/clang/test/CXX/lex/lex.pptoken/p3-0x.cpp
+++ b/clang/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");
OpenPOWER on IntegriCloud