From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/Lexer/cxx0x_raw_string_delim_length.cpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 clang/test/Lexer/cxx0x_raw_string_delim_length.cpp (limited to 'clang/test/Lexer/cxx0x_raw_string_delim_length.cpp') 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}} -- cgit v1.2.3