Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
;
}