Debian Codegraph @

libstdc++-v3/testsuite/23_containers/unordered_map/profile/hash_map.cc

raw
1 // { dg-options "-Wno-deprecated" }
2 /* testing the gcc instrumented */
3
4 #include <ext/hash_map>
5 using namespace std;
6 using __gnu_cxx::hash_map;
7
8 int 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