brintos

brintos / llvm-project-archived public Read only

0
0
Text · 382 B · 78a8bef Raw
16 lines · c
1// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s2static int x;3 4void foo(void)5{6    extern int x = 1; // expected-error {{declaration of block scope identifier with linkage cannot have an initializer}}7}8 9int y;10 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