aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/pr43942.c
blob: 3d97db6624e8e477febc1c54851fb1c1641affc0 (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
30
31
32
33
/* PR debug/43942 */
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */

extern int f1 (int);

int
f2 (int x)
{
  extern int v;
  return f1 (x);
}

void
f3 (void)
{
  f2 (0);
}

static inline int
f4 (int x)
{
  extern int w;
  if (w)
    return f1 (x);
  return 0;
}

void
f5 (void)
{
  f4 (0);
}