blob: 375cb633e984a979eb0a0af343c55a212ac47ba2 [file] [log] [blame]
/* 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" } */
}