More tests for r201536.

llvm-svn: 201610
This commit is contained in:
Richard Smith 2014-02-18 22:47:10 +00:00
parent 33489c1678
commit 3072f8e682
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
// RUN: %clang_cc1 -std=c++11 -verify %s
extern "C" {
extern R"(C++)" { }
}
#define plusplus "++"
extern "C" plusplus {
}
extern u8"C" {} // expected-error {{string literal in language linkage specifier cannot have an encoding-prefix}}
extern L"C" {} // expected-error {{string literal in language linkage specifier cannot have an encoding-prefix}}
extern u"C++" {} // expected-error {{string literal in language linkage specifier cannot have an encoding-prefix}}
extern U"C" {} // expected-error {{string literal in language linkage specifier cannot have an encoding-prefix}}