diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-16 21:43:09 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-01-16 21:43:09 +0000 |
commit | f109afdc0a36f835470e8c48bdf71a88c4130882 (patch) | |
tree | 16631b81a176bb426d9b0b22b7f844c3752350b7 /test/Lexer/cxx0x_raw_string_directives.cpp | |
parent | 04c226aab970da86fc9f59ec3a808cf916458261 (diff) |
Add raw string literal versus C preprocessor test, suggested by James Dennett.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172660 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Lexer/cxx0x_raw_string_directives.cpp')
-rw-r--r-- | test/Lexer/cxx0x_raw_string_directives.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Lexer/cxx0x_raw_string_directives.cpp b/test/Lexer/cxx0x_raw_string_directives.cpp new file mode 100644 index 0000000000..a01fba0d99 --- /dev/null +++ b/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 |