1/* { dg-do compile } */ 2 3/* Test that using an invalid type in a method declaration produces a 4 friendly error without a compiler crash. */ 5 6@interface MyClass 7@end 8 9@implementation MyClass 10- (x) method /* { dg-error "expected|type" } */ 11{ 12 return 0; 13} 14- (id) method2: (x)argument /* { dg-error "expected|type" } */ 15{ 16 return 0; 17} 18@end 19