/* { dg-do compile } */ #include @interface Foo { Class isa; } - (void) doSomething:(id object; /* { dg-error "xpected .\\)." } */ - (void) someOtherMethod; @end