Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Sema / err-decl-block-extern-no-init.c
blob78a8befd0ca78af734ae70bb1913c22e43973271
1 // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fsyntax-only -verify %s
2 static int x;
4 void foo(void)
6 extern int x = 1; // expected-error {{declaration of block scope identifier with linkage cannot have an initializer}}
9 int y;
11 void bar(void)
13 extern int y = 1; // expected-error {{declaration of block scope identifier with linkage cannot have an initializer}}