Home | History | Annotate | Download | only in tests
      1 #include <stdlib.h>
      2 
      3 // Do some big allocations.  At one point, the threshold calculation was
      4 // multiplying the szB by 10000 without using a Long, which was causing the
      5 // threshold calculation to go wrong due to a 32-bit overflow.
      6 
      7 int main(void)
      8 {
      9    // 100MB all up.
     10    int i;
     11    for (i = 0; i < 10; i++) {
     12       malloc(10 * 1024 * 1024);
     13    }
     14 
     15    return 0;
     16 }
     17