summaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/23_containers/unordered_map/profile/hash_map.cc
blob: 7939a35e3ef175905724a6ff9679f0138ae53e58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-options "-Wno-deprecated" }
/* testing the gcc instrumented */

#include <ext/hash_map>
using namespace std;
using __gnu_cxx::hash_map;

int main()
{
  hash_map <int, int> *tmp;

  for (int j=1; j<=10; j++)
  {
    tmp = new hash_map<int, int>;
    // Insert more than default item
    for (int i=0; i<10000*j; i++) {
      (*tmp)[i]= i;
    }
    delete tmp;
  }
}