-// Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2006-2024 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
#include <set>
#include <testsuite_hooks.h>
+#include <testsuite_allocator.h>
// libstdc++/29134
void test01()
{
- bool test __attribute__((unused)) = true;
-
std::set<int> s;
- VERIFY( s.max_size() ==
- std::allocator<std::_Rb_tree_node<int> >().max_size() );
+ std::allocator<std::_Rb_tree_node<int> > a;
+ VERIFY( s.max_size() == __gnu_test::max_size(a) );
}
int main()