modernc.org/cc@v1.0.1/testdata/gcc-6.3.0/gcc/testsuite/gcc.c-torture/execute/20040805-1.c (about) 1 #if __INT_MAX__ < 32768 || (defined(STACK_SIZE) && STACK_SIZE < 0x12000) 2 int main () { exit (0); } 3 #else 4 int a[2] = { 2, 3 }; 5 6 static int __attribute__((noinline)) 7 bar (int x, void *b) 8 { 9 a[0]++; 10 return x; 11 } 12 13 static int __attribute__((noinline)) 14 foo (int x) 15 { 16 char buf[0x10000]; 17 int y = a[0]; 18 a[1] = y; 19 x = bar (x, buf); 20 y = bar (y, buf); 21 return x + y; 22 } 23 24 int 25 main () 26 { 27 if (foo (100) != 102) 28 abort (); 29 exit (0); 30 } 31 #endif