summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr51012-1.c
blob: 36c788bd5266411ee2f47726b4f0fa91db1922d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile }  */
/* { dg-options "-O2 -fno-early-inlining -fno-ipa-cp" } */

float baz (void)
{
  return 0;
}

static inline int bar (int (*ibaz) (void))
{
  return ibaz ();
}

void foo (void)
{
  bar((int (*)(void))baz);
}