/* APPLE LOCAL file "unavailable" attribute 5556192 */ | |
/* { dg-do compile } */ | |
@interface Foo | |
-(void) method3 __attribute__((unavailable)); | |
@end | |
extern void func3() __attribute__((unavailable)); | |
void test(Foo* obj) | |
{ | |
[obj method3]; /* { dg-error "is unavailable" } */ | |
func3(); /* { dg-error "is unavailable" } */ | |
} |