Serge Pavlov | 5c49e1a | 2015-12-28 19:40:14 +0000 | [diff] [blame] | 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; |
Akira Hatanaka | 12ddcee | 2017-06-26 18:46:12 +0000 | [diff] [blame] | 13 | }; // expected-error{{expected ',' or '>' in template-parameter-list}} |
| 14 | // expected-warning@-1{{declaration does not declare anything}} |
Serge Pavlov | 5c49e1a | 2015-12-28 19:40:14 +0000 | [diff] [blame] | 15 | |