-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1204 }
-// { dg-excess-errors "" }
+// { dg-do compile { target c++11 } }
-// Copyright (C) 2009, 2010 Free Software Foundation
+// Copyright (C) 2009-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
{
typedef std::forward_list<A> test_type;
test_type l;
- l.insert_after(l.begin(), 10, 1);
+ l.insert_after(l.begin(), 10, 1); // { dg-error "no matching" }
}
+
+// { dg-prune-output "iterator_traits" }