[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / SemaCXX / injected-class-name-crash.cpp
bloba044ba064b58e479c7cf03dbf305679fdab30030
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 template <class T>
4 struct X : public Foo<Bar { // expected-error {{unknown template name 'Foo'}} expected-error {{use of undeclared identifier 'Bar'}} expected-note {{to match this '<'}}
5 X();
6 }; // expected-error {{expected '>'}} expected-error {{expected '{' after base class list}}
9 template <class T>
10 X<T>::X() {