summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr22061-3.c
blob: a805948182f318cfbfe5f7cd6cb93f1df77b5414 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
void
bar (int N)
{
  int foo (char a[2][++N]) { N += 4; return sizeof (a[0]); }
  if (foo (0) != 2)
    abort ();
  if (foo (0) != 7)
    abort ();
  if (N != 11)
    abort ();
}

int
main()
{
  bar (1);
  exit (0);
}