]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/list/check_construct_destroy.cc
testsuite_allocator.h (allocation_tracker): To tracker_allocator_counter.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / list / check_construct_destroy.cc
index ed6832ce0ff6b9b738a93795111ed365834e1c12..e3e1db80cd4c2fe0e26816021f5b3bf56aa4ab1c 100644 (file)
@@ -35,11 +35,11 @@ using namespace __gnu_test;
 
 int main()
 {
-  typedef std::list<int, tracker_alloc<int> > Container;
+  typedef std::list<int, tracker_allocator<int> > Container;
   const int arr10[10] = { 2, 4, 1, 7, 3, 8, 10, 5, 9, 6 };
   bool ok = true;
 
-  allocation_tracker::resetCounts();
+  tracker_allocator_counter::reset();
   {
     Container c;
     ok = check_construct_destroy("empty container", 0, 0) && ok;
@@ -47,7 +47,7 @@ int main()
   ok = check_construct_destroy("empty container", 0, 0) && ok;
 
 
-  allocation_tracker::resetCounts();
+  tracker_allocator_counter::reset();
   {
     Container c(arr10, arr10 + 10);
     ok = check_construct_destroy("Construct from range", 10, 0) && ok;
@@ -56,7 +56,7 @@ int main()
 
   {
     Container c(arr10, arr10 + 10);
-    allocation_tracker::resetCounts();
+    tracker_allocator_counter::reset();
     c.insert(c.begin(), arr10[0]);
     ok = check_construct_destroy("Insert element", 1, 0) && ok;
   }
@@ -64,7 +64,7 @@ int main()
 
   {
     Container c(arr10, arr10 + 10);
-    allocation_tracker::resetCounts();
+    tracker_allocator_counter::reset();
     Container::iterator i5 = c.begin();
     std::advance(i5, 5);
     c.insert(i5, arr10, arr10+3);
@@ -74,7 +74,7 @@ int main()
 
   {
     Container c(arr10, arr10 + 10);
-    allocation_tracker::resetCounts();
+    tracker_allocator_counter::reset();
     Container::iterator i7 = c.begin();
     std::advance(i7, 5);
     c.insert(i7, arr10, arr10+10);