| 1 |
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s |
| 2 |
|
| 3 |
class Class_With_Destructor { |
| 4 |
~Class_With_Destructor() { } |
| 5 |
}; |
| 6 |
|
| 7 |
template <class T> |
| 8 |
class Base { }; |
| 9 |
|
| 10 |
template<class T, // Should be angle bracket instead of comma |
| 11 |
class Derived : public Base<T> { // expected-error{{'Derived' cannot be defined in a type specifier}} |
| 12 |
Class_With_Destructor member; |
| 13 |
}; // expected-error{{expected ',' or '>' in template-parameter-list}} |
| 14 |
// expected-error@-1{{declaration does not declare anything}} |
| 15 |
|