URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libstdc++-v3/] [testsuite/] [23_containers/] [unordered_map/] [profile/] [hash_map.cc] - Rev 859
Go to most recent revision | Compare with Previous | Blame | View Log
// { 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; } }
Go to most recent revision | Compare with Previous | Blame | View Log