// RUN: clang-cc -fsyntax-only -verify %s // Errors export class foo { }; // expected-error {{expected template}} template x; // expected-error {{expected '<' after 'template'}} \ // expected-error {{C++ requires a type specifier for all declarations}} export template x; // expected-error {{expected '<' after 'template'}} \ // expected-note {{exported templates are unsupported}} \ // expected-error {{C++ requires a type specifier for all declarations}} // See Sema::ParsedFreeStandingDeclSpec about the double diagnostic. This is // because ParseNonTypeTemplateParameter starts parsing a DeclSpec. template < ; // expected-error {{parse error}} expected-error {{declaration does not declare anything}} template