2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / t42.C
blobca76d521855787685b0cf758d5abd19d83b8e2fb
1 // { dg-do run  }
2 extern "C" void abort ();
4 struct A {
5   struct stat {
6     int x;
7     stat (int j) { abort (); }
8   };
9   static int stat (double d) { return 0; }      // { dg-bogus "" } cfront takes it
10   static int zap () {
11     stat (0);
12     return stat (1);    // { dg-bogus "" } this should work
13   }
16 int main () {
17   return A::zap ();