summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr51039.c
blob: 863a6ff164579519162030482992b41875702448 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { dg-options "-O -finline-small-functions -fno-ipa-pure-const" } */

float baz (void)
{
  return 0;
}

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

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