summaryrefslogtreecommitdiff
path: root/clang/test/Lexer/cxx0x_raw_string_delim_length.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Lexer/cxx0x_raw_string_delim_length.cpp')
-rw-r--r--clang/test/Lexer/cxx0x_raw_string_delim_length.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Lexer/cxx0x_raw_string_delim_length.cpp b/clang/test/Lexer/cxx0x_raw_string_delim_length.cpp
new file mode 100644
index 0000000..b9f6d13
--- /dev/null
+++ b/clang/test/Lexer/cxx0x_raw_string_delim_length.cpp
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -std=c++11 -verify %s
+
+const char *str1 = R"(abcdef)"; // ok
+const char *str2 = R"foo()foo"; // ok
+const char *str3 = R"()"; // ok
+// FIXME: recover better than this.
+const char *str4 = R"abcdefghijkmnopqrstuvwxyz(abcdef)abcdefghijkmnopqrstuvwxyz"; // expected-error {{raw string delimiter longer than 16 characters}} expected-error {{expected expression}}