--- a/libstdc++-v3/testsuite/23_containers/unordered_set/allocator/move_assign.cc
+++ b/libstdc++-v3/testsuite/23_containers/unordered_set/allocator/move_assign.cc
@@ -18,6 +18,8 @@
// { dg-do run { target c++11 } }
#include <unordered_set>
+#include <ext/throw_allocator.h>
+
#include <testsuite_hooks.h>
#include <testsuite_allocator.h>
#include <testsuite_counter_type.h>
@@ -27,7 +29,9 @@ using __gnu_test::counter_type;
void test01()
{
- typedef propagating_allocator<counter_type, false> alloc_type;
+ {
+ typedef propagating_allocator<counter_type, false,
+ __gnu_cxx::throw_allocator_limit<counter_type>> alloc_type;