Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/obj-c++.dg/method-18.mm @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* Contributed by Igor Seleznev <selez@mail.ru>. */ /* This used to be broken. */ #include <objc/objc.h> @interface A + (A *)currentContext; @end @interface B + (B *)currentContext; @end int main() { [A currentContext]; /* { dg-bogus "multiple declarations" } */ return 0; } @implementation A + (A *)currentContext { return nil; } @end @implementation B + (B *)currentContext { return nil; } @end