1 2 3 4 5 6 7 8 9 10 11 12
// { dg-do run } // GROUPS passed niklas hiding local-types extern "C" int printf (const char*, ...); int val = 1; void S () { printf ("FAIL\n"); } void f () { printf ("PASS\n"); val = 0; } int main () { struct S { S () { f (); } }; S (); return val; }