Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/20000819-1.c

raw
1 void abort (void);
2 void exit (int);
3
4 int a[2] = { 2, 0 };
5
6 void foo(int *sp, int cnt)
7 {
8 int *p, *top;
9
10 top = sp; sp -= cnt;
11
12 for(p = sp; p <= top; p++)
13 if (*p < 2) exit(0);
14 }
15
16 int main()
17 {
18 foo(a + 1, 1);
19 abort();
20 }