brintos

brintos / llvm-project-archived public Read only

0
0
Text · 491 B · 3ad76c6 Raw
16 lines · cpp
1// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s2 3class Class_With_Destructor {4  ~Class_With_Destructor() { }5};6 7template <class T>8class Base { };9 10template<class T,  // Should be angle bracket instead of comma11class 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 16