blob: e648e82559c26f75d22f93c1af7c06b70c963534 [file] [log] [blame]
/* PR tree-optimization/80612 */
/* { dg-do compile } */
struct obstack *a;
struct obstack {
union {
void *plain;
void (*extra)();
} chunkfun;
} fn1(void p4()) {
a->chunkfun.plain = p4;
a->chunkfun.extra(a);
}
void fn2(int) __attribute__((__alloc_size__(1)));
void fn3() { fn1(fn2); }
/* { dg-prune-output "attribute ignored" } */