libstdc++: Fix find_last_set(simd_mask) to ignore padding bits
[official-gcc.git] / gcc / testsuite / obj-c++.dg / invalid-method-2.mm
blob8eee0ff6432767ccb2b75f1995c0fb2c7c60287b
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.  */
7 @interface MyClass
8 @end
10 @implementation MyClass
11 - (x) method /* { dg-error "expected|type" } */
13   return 0;
15 - (id) method2: (x)argument /* { dg-error "expected|type" } */
17   return 0;
19 @end