Merge from mainline (151362:151806)
[official-gcc/graphite-test-results.git] / libstdc++-v3 / testsuite / 23_containers / unordered_map / profile / hash_map.cc
blob7939a35e3ef175905724a6ff9679f0138ae53e58
1 // { dg-options "-Wno-deprecated" }
2 /* testing the gcc instrumented */
4 #include <ext/hash_map>
5 using namespace std;
6 using __gnu_cxx::hash_map;
8 int main()
10 hash_map <int, int> *tmp;
12 for (int j=1; j<=10; j++)
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;
19 delete tmp;