Home | History | Annotate | Download | only in tests
      1 
      2 
      3 #include <stdio.h>
      4 #include <stdlib.h>
      5 #include <unistd.h>
      6 
      7 #define ZILLION 1000000
      8 
      9 void foo ( void );
     10 void bar ( void );
     11 
     12 int main ( void )
     13 {
     14    int i;
     15    char* a = malloc(ZILLION * sizeof(char));
     16    for (i = 0; i <= ZILLION; i++) {
     17       foo();
     18       a[i] = 0;
     19       bar();
     20    }
     21    a = (char*)177;
     22    _exit(1);
     23 }
     24 
     25 void foo ( void ) { }
     26 void bar ( void ) { }
     27