1 /* { dg-do compile } */
2 // { dg-additional-options "-Wno-objc-root-class" }
4 /* Test that using an invalid type in a method declaration produces a
5 friendly error without a compiler crash. */
10 @implementation MyClass
11 - (x) method /* { dg-error "expected|type" } */
15 - (id) method2: (x)argument /* { dg-error "expected|type" } */