]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/forward_list/requirements/dr438/insert_neg.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / forward_list / requirements / dr438 / insert_neg.cc
index 849eb643e87bf4d300ea37ca9fdc8d0ed0276fb1..1c936433ee7005d2b666bd11685b83c2fd8c99ac 100644 (file)
@@ -1,9 +1,6 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1198 }
-// { 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
@@ -31,5 +28,7 @@ void f()
 {
   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" }