]>
Commit | Line | Data |
---|---|---|
921e5a0e JL |
1 | extern "C" void abort (); |
2 | ||
3 | struct A { | |
4 | struct stat { | |
5 | int x; | |
6 | stat (int j) { abort (); } | |
7 | }; | |
8 | static int stat (double d) { return 0; } // gets bogus error - cfront takes it | |
9 | static int zap () { | |
10 | stat (0); | |
11 | return stat (1); // gets bogus error - this should work | |
12 | } | |
13 | }; | |
14 | ||
15 | int main () { | |
16 | return A::zap (); | |
17 | } |