PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / objc.dg / invalid-method-1.m
blob78eae2c5815e2055fc603700ace7dcd4d489d0f5
1 /* { dg-do compile } */
2 /* Test that we keep compiling if a method definition is found outside
3    of an @implementation context.
4 */
6 + (void)C { } /* { dg-error "method definition not in @implementation context" } */
8 /* We have another error here to test that the compiler is still going and
9    finding errors in the rest of the code.
11 @compatibility_alias class1 class2; /* { dg-warning "annot find class" } */