bolt/deps/llvm-18.1.8/clang/test/Sema/attr-external-source-symbol-cxx.cpp

17 lines
556 B
C++
Raw Normal View History

2025-02-14 19:21:04 +01:00
// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
template<class T>
class Class {
public:
[[clang::external_source_symbol(language="Swift", defined_in="module", USR="test", generated_declaration)]]
void testExternalSourceSymbol();
// expected-error@+1 {{expected string literal for USR in 'external_source_symbol' attribute}}
[[clang::external_source_symbol(language="Swift", defined_in="module", USR=T, generated_declaration)]]
void testExternalSourceSymbol2();
};
template<class T>
void Class<T>::testExternalSourceSymbol() {
}