modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/execute/20000910-1.c (about) 1 /* Copyright (C) 2000 Free Software Foundation */ 2 /* by Alexandre Oliva <aoliva@redhat.com> */ 3 4 #include <stdlib.h> 5 6 void bar (int); 7 void foo (int *); 8 9 int main () { 10 static int a[] = { 0, 1, 2 }; 11 int *i = &a[sizeof(a)/sizeof(*a)]; 12 13 while (i-- > a) 14 foo (i); 15 16 exit (0); 17 } 18 19 void baz (int, int); 20 21 void bar (int i) { baz (i, i); } 22 void foo (int *i) { bar (*i); } 23 24 void baz (int i, int j) { 25 if (i != j) 26 abort (); 27 }