1 /* Check to make sure that a c++ program compiled in objective-c++ mode
2 has no trace of meta-data specific diagnosis coming out of compiling it.
3 This is replicate of warn5.C.
6 // { dg-options "-Wpointer-arith" }
8 double X(const double x) { return x; }
9 double Y() { return 1.0; }
10 double Z() { return 2.0; }
17 typedef void (A::*pmf)();
19 static int mememe = &A::foo - &A::bar; // { dg-error "" }
20 pmf b = &A::foo-1; // { dg-error "" }
24 y=X(Y-Z); // { dg-error "" }