1 // g++ 1.36.1 bug 900212_02
3 // g++ fails to flag as errors attempts to take the difference of two values
4 // of some compatible pointer-to-member type.
6 // Cfront 2.0 passes this test.
8 // keywords: pointer arithmetic, subtraction, member pointers
16 int (struct0::*fp0) ();
17 int (struct0::*fp1) ();
21 void global_function_0 ()
23 result = (p0 - p1); // ERROR -
24 result = (fp0 - fp1); // ERROR -
27 int main () { return 0; }