-// { 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;
}