llvm-for-llvmta/tools/clang/test/CXX/dcl.dcl/dcl.link/p2.cpp

15 lines
582 B
C++
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// 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}}