summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33434-4.c
blob: d34675fe4e221dab5f15e2329ba2e72804594a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR tree-optimization/33434 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

void *baz (void);

static void *
bar (void *x)
{
  x = baz ();
  return x;
}

void *
foo (void *x)
{
  return bar (x);
}