-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
// { dg-require-cstdint "" }
// 2009-09-14 Benjamin Kosnik <benjamin@redhat.com>
-// Copyright (C) 2009-2013 Free Software Foundation, Inc.
+// Copyright (C) 2009-2023 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
// <http://www.gnu.org/licenses/>.
#include <string>
+#include <debug/string>
#include <exception/safety.h>
void
typedef char value_type;
typedef __gnu_cxx::throw_allocator_limit<value_type> allocator_type;
typedef std::char_traits<value_type> traits_type;
- typedef std::basic_string<value_type, traits_type, allocator_type> test_type;
- __gnu_test::propagation_consistent<test_type> test;
+
+ {
+ typedef std::basic_string<value_type, traits_type, allocator_type> test_type;
+ __gnu_test::propagation_consistent<test_type> test;
+ }
+
+ {
+ typedef __gnu_debug::basic_string<value_type, traits_type, allocator_type> test_type;
+ __gnu_test::propagation_consistent<test_type> test;
+ }
}
// Container requirement testing, exceptional behavior