view gcc/testsuite/gcc.dg/torture/pr80612.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children 1830386684a0
line wrap: on
line source

/* 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); }