Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
anon2.C
blob: dbda79fefcf156b0972283846c4831202861a14c [
file
] [
log
] [
blame
]
// { dg-do compile }
// { dg-options "-std=c++98" }
// Make sure we issue a diagnostic if a type with no linkage is used
// to declare a a variable that has linkage.
struct
{
int
i
;
}
a
;
// { dg-warning "unnamed type" }
void
foo
()
{
a
.
i
;
}