1 // { dg-do assemble }
2 // GROUPS passed visibility
3 // visibility file
4 // From: kol@world.std.com (Nikolay Yatsenko)
5 // Date: Wed, 27 Jan 1993 16:39:00 -0500
6 // Subject: g++ bug
7 // Message-ID: <199301272139.AA25442@world.std.com>
8
9 int x;
10
main(void)11 int main(void)
12 {
13 static int s;
14 int x; // { dg-message "" } declared
15 extern int g();
16
17 struct local {
18 int g() { return x; } // illegal (non-static x); g++ does not give error// { dg-error "" }
19 int h() { return s; } // ok, but g++ give error
20 };
21 return 0;
22 }
23