PR libstdc++/86676 another alignment fix for test
authorJonathan Wakely <jwakely@redhat.com>
Wed, 25 Jul 2018 23:38:17 +0000 (00:38 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 25 Jul 2018 23:38:17 +0000 (00:38 +0100)
PR libstdc++/86676
* testsuite/20_util/monotonic_buffer_resource/release.cc: Request
same alignment for post-release allocation.

From-SVN: r262984

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/monotonic_buffer_resource/release.cc

index 1a0a485bd2cad489ee116e5460b1f51580924f9f..050b027fbe565ae83ea1251ff47107b04532f8fa 100644 (file)
@@ -1,3 +1,9 @@
+2018-07-26  Jonathan Wakely  <jwakely@redhat.com>
+
+       PR libstdc++/86676
+       * testsuite/20_util/monotonic_buffer_resource/release.cc: Request
+       same alignment for post-release allocation.
+
 2018-07-25  Jonathan Wakely  <jwakely@redhat.com>
 
        PR libstdc++/86676
index ac70385961dfd847b7843febce3f70eb8c5d6249..8aab4692d5236a5474b0296e5390bfa0965f4656 100644 (file)
@@ -127,7 +127,7 @@ test04()
   VERIFY( mbr.upstream_resource() == &r );
   VERIFY( r.number_of_active_allocations() == 0 );
   // initial buffer should be used again now:
-  p = mbr.allocate(1000);
+  p = mbr.allocate(1000, 16);
   VERIFY( p == p_in_buffer );
   VERIFY( r.allocate_calls == 1 );
 }