summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.niklas/t140.C
blob: ba803c777c9fa72d0d832bd079f8c4822428d3ba (plain)
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;
}