blob: 70939e7cf6cc4d1ef0ed55b4d9a03d566e83cd7e [file] [log] [blame]
/* APPLE LOCAL file radar 4733555 */
/* weak_import attribute on methods must be silently ignored, as such methods are
already 'weak'. */
/* { dg-do compile { target *-*-darwin* } } */
__attribute__((objc_root_class)) @interface Foo
- (void) a __attribute__((weak_import));
- (void) b __attribute__((weak_import));
+ (void) c __attribute__((weak_import));
@end
int func (Foo *p)
{
[p a];
[p b];
[Foo c];
}