PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / obj-c++.dg / method-18.mm
blob411caac111ad283318ec7431a18ce6905a4e8097
1 /* Contributed by Igor Seleznev <selez@mail.ru>.  */
2 /* This used to be broken.  */
4 #include <objc/objc.h>
6 @interface A
7 + (A *)currentContext;
8 @end
10 @interface B
11 + (B *)currentContext;
12 @end
14 int main()
16     [A currentContext];  /* { dg-bogus "multiple declarations" }  */
17     return 0;
20 @implementation A
21 + (A *)currentContext { return nil; }
22 @end
23 @implementation B
24 + (B *)currentContext { return nil; }
25 @end