Debian Codegraph @

gcc/testsuite/gcc.dg/torture/pr80612.c

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