☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
extern-initialized.C
☽
☼
gcc/testsuite/g++.dg/diagnostic/extern-initialized.C
code
plain
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
}