diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
commit | 809500fc2c13c8173a16b052304d983864e4a1e1 (patch) | |
tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/Lexer/cxx0x_raw_string_directives.cpp | |
parent | be7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff) |
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 0000000000000..a01fba0d9911b --- /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 |