You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
366 B
12 lines
366 B
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
template <class T>
|
|
struct X : public Foo<Bar { // expected-error {{unknown template name 'Foo'}} expected-error {{use of undeclared identifier 'Bar'}} expected-note {{to match this '<'}}
|
|
X();
|
|
}; // expected-error {{expected '>'}} expected-error {{expected '{' after base class list}}
|
|
|
|
|
|
template <class T>
|
|
X<T>::X() {
|
|
}
|