// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s template class Foo { template' in template-parameter-list}} // expected-error@-2 {{declaration does not declare anything}} }; Foo::UBar g1; // expected-error {{no type named 'UBar' in 'Foo'}} class C0 { public: template' in template-parameter-list}} // expected-error@-3 {{declaration does not declare anything}} C0() : m(new S0) {} // expected-error {{expected '(' for function-style cast or type construction}} // expected-error@-1 {{expected expression}} S0 *m; // expected-error {{expected member name or ';' after declaration specifiers}} };