blob: e3a8ed1ff178b67d448d7840cc0604cfb96e6952 [file] [log] [blame]
/* { dg-do compile } */
/* Test that using an invalid type in a method declaration produces a
friendly error without a compiler crash. */
@interface MyClass
@end
@implementation MyClass
- (x) method /* { dg-error "expected|type" } */
{
return 0;
}
- (id) method2: (x)argument /* { dg-error "expected|type" } */
{
return 0;
}
@end