gcc/testsuite/g++.old-deja/g++.pt/t42.C
raw| 1 | // { dg-do run } |
| 2 | extern "C" void abort (); |
| 3 | |
| 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 | } |
| 14 | }; |
| 15 | |
| 16 | int main () { |
| 17 | return A::zap (); |
| 18 | } |