Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / attr-external-source-symbol-cxx.cpp
blob91cb219206add588d16eb1ed263cb795a3339580
1 // RUN: %clang_cc1 -fsyntax-only -fblocks -verify %s
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();
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();
14 template<class T>
15 void Class<T>::testExternalSourceSymbol() {