1 /* PR tree-optimization/80612 */
2 /* { dg-do compile } */
3 
4 struct obstack *a;
5 struct obstack {
6   union {
7     void *plain;
8     void (*extra)();
9   } chunkfun;
fn1(void p4 ())10 } fn1(void p4()) {
11   a->chunkfun.plain = p4;
12   a->chunkfun.extra(a);
13 }
14 void fn2(int) __attribute__((__alloc_size__(1)));
fn3()15 void fn3() { fn1(fn2); }
16 
17 /* { dg-prune-output "attribute ignored" } */
18