1// { dg-options "-Wno-deprecated" } 2/* testing the gcc instrumented */ 3 4#include <ext/hash_map> 5using namespace std; 6using __gnu_cxx::hash_map; 7 8int main() 9{ 10 hash_map <int, int> *tmp; 11 12 for (int j=1; j<=10; j++) 13 { 14 tmp = new hash_map<int, int>; 15 // Insert more than default item 16 for (int i=0; i<10000*j; i++) { 17 (*tmp)[i]= i; 18 } 19 delete tmp; 20 } 21} 22 23