2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / ctor1.C
blob73907195782df8f59ea4b26d2ea576493d34e3aa
1 // { dg-do run  }
2 // PRMS Id: 5584
4 extern "C"
6   struct xx {
7     void (*xx)(void);
8     int x,y;
9   };
12 int r = 1;
14 void f(void)
16   r = 0;
19 int main()
21   struct xx p;
23   p.xx = f;
24   p.xx();
26   return r;