You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
582 B
15 lines
582 B
// 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}}
|