Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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" }
}