Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / objc.dg / method-12.m
blobb69a84f300bed6457549caca52ee697ca467b918
1 /* Contributed by Igor Seleznev <selez@mail.ru>.  */
2 /* This used to be broken.  */
3 /* { dg-additional-options "-Wno-objc-root-class" } */
5 #include <objc/objc.h>
7 @interface A
8 + (A *)currentContext;
9 @end
11 @interface B
12 + (B *)currentContext;
13 @end
15 int main()
17     [A currentContext];  /* { dg-bogus "multiple declarations" }  */
18     return 0;
21 @implementation A
22 + (A *)currentContext { return nil; }
23 @end
24 @implementation B
25 + (B *)currentContext { return nil; }
26 @end