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. 4*/ 5// { dg-do assemble } 6// { dg-options "-Wpointer-arith" } 7 8double X(const double x) { return x; } 9double Y() { return 1.0; } 10double Z() { return 2.0; } 11 12struct A { 13 void bar() { } 14 void foo() { } 15}; 16 17typedef void (A::*pmf)(); 18 19static int mememe = &A::foo - &A::bar; // { dg-error "" } 20pmf b = &A::foo-1; // { dg-error "" } 21 22int main() { 23 double y; 24 y=X(Y-Z); // { dg-error "" } 25} 26