aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/cxx0x_raw_string_unterminated.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2011-08-11 04:06:15 +0000
committerCraig Topper <craig.topper@gmail.com>2011-08-11 04:06:15 +0000
commit2fa4e86b4fdada3b9ecbbbd99965b83ed879f69b (patch)
treea57887c9c34ac5314596b5a98d0850a58c3aa295 /test/Lexer/cxx0x_raw_string_unterminated.cpp
parent777d6e56ad9b1fed9866daf3ee6486d85c5b7d32 (diff)
Add support for C++0x raw string literals.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@137298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/cxx0x_raw_string_unterminated.cpp')
-rw-r--r--test/Lexer/cxx0x_raw_string_unterminated.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Lexer/cxx0x_raw_string_unterminated.cpp b/test/Lexer/cxx0x_raw_string_unterminated.cpp
new file mode 100644
index 0000000000..7813c999f0
--- /dev/null
+++ b/test/Lexer/cxx0x_raw_string_unterminated.cpp
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -std=c++0x -E %s 2>&1 | grep 'error: raw string missing terminating delimiter )foo"'
+
+const char *str = R"foo(abc
+def)bar";
+// RUN: %clang_cc1 -std=c++0x -E %s 2>&1 | grep 'error: raw string missing terminating delimiter )foo"'
+
+const char *str = R"foo(abc
+def)bar";