OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libstdc++-v3/] [testsuite/] [23_containers/] [unordered_map/] [profile/] [hash_map.cc] - Blame information for rev 742

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 742 jeremybenn
// { 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
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.