blob: afd455553910fe763623160881ac0c396416a575 [file] [log] [blame]
/* APPLE LOCAL file radar 4746503 */
/* Don't issue 'deprecated' warning in a function which itself is deprecated. */
extern void foo() __attribute__((deprecated));
extern void bar() __attribute__((deprecated));
void foo() {} /* { dg-error "declared here" } */
void bar() { /* { dg-error "declared here" } */
foo();
}
void gorf() {
foo(); /* { dg-warning "\\'foo\\' is deprecated" } */
bar(); /* { dg-warning "\\'bar\\' is deprecated" } */
}