Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/pr22061-3.c

raw
1 void abort (void);
2 void exit (int);
3
4 void
5 bar (int N)
6 {
7 int foo (char a[2][++N]) { N += 4; return sizeof (a[0]); }
8 if (foo (0) != 2)
9 abort ();
10 if (foo (0) != 7)
11 abort ();
12 if (N != 11)
13 abort ();
14 }
15
16 int
17 main()
18 {
19 bar (1);
20 exit (0);
21 }