Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
extern-initialized.C
blob: 4138a37729677454e1026059a3265155e48f90f0 [
file
] [
log
] [
blame
]
extern
int
i __attribute__
((
unused
))
=
0
;
// { dg-warning "12:.i. initialized and declared .extern." }
void
foo
()
{
extern
int
i __attribute__
((
unused
))
=
0
;
// { dg-error "14:.i. has both .extern. and initializer" }
}