1#include <stdlib.h> 2 3static void test() 4 { 5 void* leak __attribute__((unused)); 6 int i; 7 for (i = 0; i < 1000; i++) 8 leak = (void*)malloc( 1 ); 9 } 10 int main() 11 { 12 test(); 13 return 0; 14 } 15