aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/anon2.C
blob: 3143b62fd33ae41c9d129af800e385a7c8df0c4f (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile }
// { dg-options "" }

// Make sure we don't issue a diagnostic if a type with no linkage is used
// to declare a a variable that has linkage if that variable is defined.

struct { int i; } a;

void foo() { a.i; }