summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr40570.c
blob: 7c3f4d83b2e06b3d2eca1cfef1704a392fb5d2eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
extern void anything(int);

static int foo(int i);

static int bar(int i) { foo(i); }

extern int j;

static int foo(int i)
{
  if (j)
    anything(j);
  return bar(i);
}

int baz()
{
  foo(0);
  if (baz())
    return 1;
  return 0;
}