aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20050801-2.c
blob: ba8dabaa3710f5b60edaf58ec001b2d7fde82e5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */
__inline int f(int i)
{
  struct {
    int t[i];
  } t;
  return sizeof(t.t[i--]);
}

int g(int i)
{
  return f(i);
}