2 // General testcase for local classes.
8 int x; // { dg-message "" } referenced below
12 int g() { return x; } // { dg-error "" } automatic variable
13 int h() { return s; } // { dg-bogus "" } local class
14 int k() { return ::x; } // OK
15 int l() { return q(); } // OK
16 int m(); // OK - not defined
17 static int foo; // { dg-error "" } static data member of local class
21 local* p = 0; // { dg-error "" } no such type in scope