Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaCXX / PR16677.cpp
blob3ad76c6d861d7d393c094c3ffe8317e5986f8250
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s
3 class Class_With_Destructor {
4 ~Class_With_Destructor() { }
5 };
7 template <class T>
8 class Base { };
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}}