aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/nested-3.c
blob: c46d3f5ee08c8da49b48dac96111f0fa7b8ccc84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
struct a
{
  int t;
  int t1;
};

int f(int i, int j)
{
  struct a *t;
  struct a t1 = {i, j};
  t = &t1;
  auto int g(void) __attribute__((noinline));
  int g(void)
  {
    return t->t + t->t1;
  }
  return g();
}