1/* Test if compiler detects object as an parameter to a method 2 or not. It is not valid. */ 3/* { dg-do compile } */ 4 5@interface foo 6@end 7 8@implementation foo 9@end 10 11@interface bar 12-(void) my_method:(foo) my_param; /* { dg-error "can not use an object as parameter to a method" } */ 13@end 14 15@implementation bar 16-(void) my_method:(foo) my_param /* { dg-error "can not use an object as parameter to a method" } */ 17{ 18} 19@end 20 21