// RUN: %clang_cc1 -verify %s template struct S { static int a, b; }; template int S::a, S::b; // expected-error {{can only declare a single entity}} // FIXME: the last two diagnostics here are terrible. template struct A { static A a; } A::a; // expected-error {{expected ';' after struct}} \ expected-error {{use of undeclared identifier 'T'}} \ expected-error {{cannot name the global scope}} \ expected-error {{no member named 'a' in the global namespace}} template struct B { } f(); // expected-error {{expected ';' after struct}} \ expected-error {{requires a type specifier}} template struct C { } // expected-error {{expected ';' after struct}} A c;