// RUN: %clang_cc1 -fsyntax-only -verify %s
// A storage-class-specifier shall not be specified in an explicit
// specialization (14.7.3) or an explicit instantiation (14.7.2)
// directive.
void
static void
static void ; // expected-error{{explicit specialization has extraneous, inconsistent storage class 'static'}}
; // expected-error{{explicit instantiation cannot have a storage class}}
void ;
;
static void ; // expected-warning{{explicit specialization cannot have a storage class}}
; // expected-error{{explicit instantiation cannot have a storage class}}
void ;
;
;
int X<T>::value = 17;
; // expected-error{{explicit instantiation cannot have a storage class}}
static int X<float>::value; // expected-error{{'static' can only be specified inside the class definition}}