summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr46165.c
blob: a13300e7ec92a7e632e352934d658d8431ecdf63 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR tree-optimization/46165 */
/* { dg-do compile } */
/* { dg-options "-O -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce" } */

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