1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s 2 static int x; 3 foo(void)4void foo(void) 5 { 6 extern int x = 1; // expected-error {{declaration of block scope identifier with linkage cannot have an initializer}} 7 } 8 9 int y; 10 bar(void)11void bar(void) 12 { 13 extern int y = 1; // expected-error {{declaration of block scope identifier with linkage cannot have an initializer}} 14 15 } 16