2015-12-29 03:40:14 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
|
|
|
|
|
|
|
|
class Class_With_Destructor {
|
|
|
|
~Class_With_Destructor() { }
|
|
|
|
};
|
|
|
|
|
|
|
|
template <class T>
|
|
|
|
class Base { };
|
|
|
|
|
|
|
|
template<class T, // Should be angle bracket instead of comma
|
|
|
|
class Derived : public Base<T> { // expected-error{{'Derived' cannot be defined in a type specifier}}
|
|
|
|
Class_With_Destructor member;
|
2017-06-27 02:46:12 +08:00
|
|
|
}; // expected-error{{expected ',' or '>' in template-parameter-list}}
|
|
|
|
// expected-warning@-1{{declaration does not declare anything}}
|
2015-12-29 03:40:14 +08:00
|
|
|
|