]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
alloc.cc: Fix use of test allocator.
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Jun 2014 23:05:58 +0000 (00:05 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 25 Jun 2014 23:05:58 +0000 (00:05 +0100)
* testsuite/20_util/shared_ptr/creation/alloc.cc: Fix use of test
allocator.
* testsuite/20_util/shared_ptr/creation/no_rtti.cc: Likewise.
* testsuite/30_threads/promise/cons/alloc.cc: Likewise.

From-SVN: r212003

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/shared_ptr/creation/alloc.cc
libstdc++-v3/testsuite/20_util/shared_ptr/creation/no_rtti.cc
libstdc++-v3/testsuite/30_threads/promise/cons/alloc.cc

index 31669e0cc3c4c308d2b6da46b3b5b8616e44c8d7..7b6c2413f00f0e01d8e090dc48da51c23a434263 100644 (file)
        with fancy pointer.
        * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
 
+       * testsuite/20_util/shared_ptr/creation/alloc.cc: Fix use of test
+       allocator.
+       * testsuite/20_util/shared_ptr/creation/no_rtti.cc: Likewise.
+       * testsuite/30_threads/promise/cons/alloc.cc: Likewise.
+
 2014-06-24  Jonathan Wakely  <jwakely@redhat.com>
 
        * include/bits/functexcept.h (__throw_out_of_range_fmt): Change
index 402c612f592b06c3466c0c55bd7fc55edf4a4d5a..0628807019aea054a25e43700af0bf0e43645952 100644 (file)
@@ -101,16 +101,10 @@ test02()
          == tracker_allocator_counter::get_deallocation_count() );
 }
 
-template<typename T>
-  struct Pointer : __gnu_test::PointerBase<Pointer<T>, T>
-  {
-    using __gnu_test::PointerBase<Pointer<T>, T>::PointerBase;
-  };
-
 void
 test03()
 {
-  __gnu_test::CustomPointerAlloc<Pointer<int>> alloc;
+  __gnu_test::CustomPointerAlloc<int> alloc;
   auto p = std::allocate_shared<int>(alloc, 1);
   VERIFY( *p == 1 );
 }
index 127bafb3294b0d6624bbf29ee0f97c152441eaa0..d1fab6cf969f5641b61a2ff4e71ca1247c3eaef6 100644 (file)
@@ -29,13 +29,7 @@ struct X { };
 
 // test allocate_shared with no RTTI
 
-template<typename T>
-  struct Pointer : __gnu_test::PointerBase<Pointer<T>, T>
-  {
-    using __gnu_test::PointerBase<Pointer<T>, T>::PointerBase;
-  };
-
-__gnu_test::CustomPointerAlloc<Pointer<int>> alloc;
+__gnu_test::CustomPointerAlloc<int> alloc;
 
 auto p = std::allocate_shared<X>(alloc);
 
index c45e646aae0d2f973a5d518c731c0cfb6b5e7226..ea9bb1a16ca3c06be723777e7e72ff521a9d4fea 100644 (file)
@@ -38,16 +38,9 @@ void test01()
   VERIFY( p1.get_future().get() == 5 );
 }
 
-template<typename T>
-  struct Pointer : __gnu_test::PointerBase<Pointer<T>, T>
-  {
-    using __gnu_test::PointerBase<Pointer<T>, T>::PointerBase;
-  };
-
-void
-test02()
+void test02()
 {
-  __gnu_test::CustomPointerAlloc<Pointer<int>> alloc;
+  __gnu_test::CustomPointerAlloc<int> alloc;
   promise<int> p1(allocator_arg, alloc);
   p1.set_value(5);
   VERIFY( p1.get_future().get() == 5 );