brintos

brintos / llvm-project-archived public Read only

0
0
Text · 556 B · 91cb219 Raw
17 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s2 3template<class T>4class Class {5public: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 14template<class T>15void Class<T>::testExternalSourceSymbol() {16}17