]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/21_strings/basic_string/requirements/exception/propagation_consistent.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 21_strings / basic_string / requirements / exception / propagation_consistent.cc
index 364c4b29e87c0f0bf63f28fccddb94414b40bc5a..805aecdab190c169d65f038dcab99b2011978359 100644 (file)
@@ -1,9 +1,9 @@
-// { 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
@@ -21,6 +21,7 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <string>
+#include <debug/string>
 #include <exception/safety.h>
 
 void
@@ -31,8 +32,16 @@ value()
   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