Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/extern-initialized.C

raw
1 extern int i __attribute__((unused)) = 0; // { dg-warning "12:.i. initialized and declared .extern." }
2
3 void foo()
4 {
5 extern int i __attribute__((unused)) = 0; // { dg-error "14:.i. has both .extern. and initializer" }
6 }