PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / obj-c++.dg / invalid-method-2.mm
blobe3a8ed1ff178b67d448d7840cc0604cfb96e6952
1 /* { dg-do compile } */
3 /* Test that using an invalid type in a method declaration produces a
4    friendly error without a compiler crash.  */
6 @interface MyClass
7 @end
9 @implementation MyClass
10 - (x) method /* { dg-error "expected|type" } */
12   return 0;
14 - (id) method2: (x)argument /* { dg-error "expected|type" } */
16   return 0;
18 @end