]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/list/requirements/citerators.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / list / requirements / citerators.cc
index 6bcffbb05eea0deb75afcc77073f2bd14b92b7bc..0698d8feb507cfdc4c554c3f6f5c0111b0c06c28 100644 (file)
@@ -1,8 +1,8 @@
-// { dg-options "-std=gnu++0x" }
+// { dg-do run { target c++11 } }
 
 // 2007-10-15  Paolo Carlini  <pcarlini@suse.de>
 
-// Copyright (C) 2007, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007-2020 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
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
-
 #include <list>
-#include <testsuite_hooks.h>
-
-void
-test01()
-{
-  bool test __attribute__((unused)) = true;
-
-  typedef std::list<int> list_type;
-  list_type l(7);
-
-  VERIFY( l.cbegin() == l.begin() );
-  VERIFY( l.cend() == l.end() );
-  VERIFY( l.crbegin() == l.rbegin() );
-  VERIFY( l.crend() == l.rend() );
-  VERIFY( l.cbegin() != l.cend() );
-  VERIFY( l.crbegin() != l.crend() );  
-}
+#include <testsuite_containers.h>
 
 int main()
 {
-  test01();
+  typedef std::list<int>  test_type;
+  __gnu_test::citerator<test_type> test;
   return 0;
 }