summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46494.c
blob: 29f96856b1d7dfdf74d41de893fcd32eab8ae92f (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile }
/* { dg-options "-O -fno-tree-ccp -fno-tree-fre -ftree-vrp" } */

extern void foo (void) __attribute__((noreturn));
void g (void)
{
  void (*f) (void) = foo;
  f ();
}