summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr49000.c
blob: 32a1cdb35f7cdf46bae2f18f67805e82f412e458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* PR tree-optimization/49000 */
/* { dg-do compile } */
/* { dg-options "-O2 -g" } */

static
foo (int x, int y)
{
  return x * y;
}

static int
bar (int *z)
{
  return *z;
}

void
baz (void)
{
  int a = 42;
  int *b = &a;
  foo (bar (&a), 3);
}

void
test (void)
{
  baz ();
}