aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr77767.c
blob: 21725a56bfe7d94b57c9088481c334d49b6d3c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR c/77767 */

void
foo (int a, int b[a++], int c, int d[c++])
{
  if (a != 2 || c != 2)
    __builtin_abort ();
}

int
main ()
{
  int e[10];
  foo (1, e, 1, e);
  return 0;
}