]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/forward_list/requirements/dr438/constructor_1_neg.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / forward_list / requirements / dr438 / constructor_1_neg.cc
index 5f5ac2c7713acbcacbf0baadca75a02046d80197..50d7184aa08c66fb735b564c317bed3911cfb0c4 100644 (file)
@@ -1,9 +1,6 @@
-// { dg-do compile }
-// { dg-options "-std=gnu++0x" }
-// { dg-error "no matching" "" { target *-*-* } 1194 }
-// { dg-excess-errors "" }
+// { dg-do compile { target c++11 } }
 
-// Copyright (C) 2009, 2010 Free Software Foundation
+// Copyright (C) 2009-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
@@ -25,5 +22,7 @@
 void f()
 {
   typedef std::forward_list<std::forward_list<int> > test_type;
-  test_type l(10, 1);
+  test_type l(10, 1); // { dg-error "no matching" }
 }
+
+// { dg-prune-output "iterator_traits" }