// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -fsyntax-only -verify -std=c++11 %s
static int test0 ; // expected-error {{weak declaration cannot have internal linkage}}
static void ; // expected-error {{weak declaration cannot have internal linkage}}
;
// GCC rejects the instantiation with the internal type, but some existing
// code expects it. It is also not that different from giving hidden visibility
// to parts of a template that have explicit default visibility, so we accept
// this.
;
int Test7<T>::var;
;
;
; // OK
auto Test9 = ; // expected-error {{weak declaration cannot have internal linkage}}