summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc.dg/invalid-method-1.m
blob: 78eae2c5815e2055fc603700ace7dcd4d489d0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* Test that we keep compiling if a method definition is found outside
   of an @implementation context.
*/

+ (void)C { } /* { dg-error "method definition not in @implementation context" } */

/* We have another error here to test that the compiler is still going and
   finding errors in the rest of the code.
*/
@compatibility_alias class1 class2; /* { dg-warning "annot find class" } */