summaryrefslogtreecommitdiffstats
path: root/clang/test/Lexer/cxx0x_raw_string_directives.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-01-16 21:43:09 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-01-16 21:43:09 +0000
commite826c1a134f17f610578de147d394f61f16a6887 (patch)
treefc46556a87fd4368310178dc54260c3fce2f2bba /clang/test/Lexer/cxx0x_raw_string_directives.cpp
parentd77d9fb04d8973b9493cb7c30d2e4b6c8f8292ed (diff)
downloadbcm5719-llvm-e826c1a134f17f610578de147d394f61f16a6887.tar.gz
bcm5719-llvm-e826c1a134f17f610578de147d394f61f16a6887.zip
Add raw string literal versus C preprocessor test, suggested by James Dennett.
llvm-svn: 172660
Diffstat (limited to 'clang/test/Lexer/cxx0x_raw_string_directives.cpp')
-rw-r--r--clang/test/Lexer/cxx0x_raw_string_directives.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Lexer/cxx0x_raw_string_directives.cpp b/clang/test/Lexer/cxx0x_raw_string_directives.cpp
new file mode 100644
index 00000000000..a01fba0d991
--- /dev/null
+++ b/clang/test/Lexer/cxx0x_raw_string_directives.cpp
@@ -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
OpenPOWER on IntegriCloud