]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/unordered_multimap/insert/55028-debug.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / unordered_multimap / insert / 55028-debug.cc
index fc17256f4bb745fcf3c5b2b91b0579ca345bd66c..ca5f5edb724236e8fdf9d87202ada9190ebaacc5 100644 (file)
@@ -1,6 +1,6 @@
-// { dg-options "-std=gnu++0x -D_GLIBCXX_DEBUG" }
+// { dg-do run { target c++11 } }
 //
-// Copyright (C) 2012 Free Software Foundation, Inc.
+// Copyright (C) 2012-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
@@ -30,7 +30,7 @@ void test()
   // using MyMap = std::multimap<std::string, MyType *>; // works
   using MyMap = std::unordered_multimap<std::string, MyType*>; // fails to link
   MyMap m;
-  m.insert(std::make_pair(std::string("blah"), new MyType));
+  m.insert(std::make_pair(std::string("blah"), (MyType*)nullptr));
 }
 
 int main()