1 /* Test if compiler detects object as an parameter to a method
2 or not. It is not valid. */
3 /* { dg-do compile } */
12 -(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */
16 -(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */