Add raw string literal versus C preprocessor test, suggested by James Dennett.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 16 Jan 2013 21:43:09 +0000 (21:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 16 Jan 2013 21:43:09 +0000 (21:43 +0000)
llvm-svn: 172660

clang/test/Lexer/cxx0x_raw_string_directives.cpp [new file with mode: 0644]

diff --git a/clang/test/Lexer/cxx0x_raw_string_directives.cpp b/clang/test/Lexer/cxx0x_raw_string_directives.cpp
new file mode 100644 (file)
index 0000000..a01fba0
--- /dev/null
@@ -0,0 +1,9 @@
+// RUN: %clang_cc1 -std=c++11 -fsyntax-only %s
+// RUN: %clang_cc1 -std=c++98 -fsyntax-only -verify %s
+
+// expected-error@8 {{in c++98 only}}
+#if 0
+R"(
+#else
+#error in c++98 only)"
+#endif