#include <stdio.h> /* for printf */
#include <stdlib.h> /* for malloc */

#define CHUNKSIZE 10000000

    int main () {
      char *chunk;
      int i;
   
      for (i = 1;; ++i) {
         printf ("Chunk %d\n", i);
         chunk = (char *) malloc (CHUNKSIZE);
         if (! chunk) {
            printf ("Failed to allocate!\n");
            return 1;
            }
         /* free(chunk); */
         }
      }
