aboutsummaryrefslogtreecommitdiff
path: root/test/Lexer/cxx0x_raw_string_unterminated.cpp
diff options
context:
space:
mode:
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";