Add raw string literal versus C preprocessor test, suggested by James Dennett.

llvm-svn: 172660
This commit is contained in:
Richard Smith 2013-01-16 21:43:09 +00:00
parent d77d9fb04d
commit e826c1a134

View File

@ -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