Debian Codegraph @

clang/test/Sema/attr-external-source-symbol-cxx.cpp

raw
1 // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
2
3 template<class T>
4 class Class {
5 public:
6 [[clang::external_source_symbol(language="Swift", defined_in="module", USR="test", generated_declaration)]]
7 void testExternalSourceSymbol();
8
9 // expected-error@+1 {{expected string literal for USR in 'external_source_symbol' attribute}}
10 [[clang::external_source_symbol(language="Swift", defined_in="module", USR=T, generated_declaration)]]
11 void testExternalSourceSymbol2();
12 };
13
14 template<class T>
15 void Class<T>::testExternalSourceSymbol() {
16 }