]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/23_containers/unordered_multimap/requirements/explicit_instantiation/5.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 23_containers / unordered_multimap / requirements / explicit_instantiation / 5.cc
index 06b9044cca44ff6227824357ec2446df52c3a300..896f2c6fbf9d891851f52b57b1c096e8f9c40fc9 100644 (file)
@@ -1,5 +1,4 @@
-
-// Copyright (C) 2011-2017 Free Software Foundation, Inc.
+// Copyright (C) 2011-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
 
 // { dg-do compile { target c++11 } }
 
+using __gnu_test::ExplicitConsAlloc;
+
 // libstdc++/50118
+template class
+  std::unordered_multimap<int, int, std::hash<int>, std::equal_to<int>,
+                         ExplicitConsAlloc<std::pair<const int, int>>>;
+#if !defined __STRICT_ANSI__ && __cplusplus <= 201703L
 template class std::unordered_multimap<int, int, std::hash<int>,
                                       std::equal_to<int>,
-                                      __gnu_test::ExplicitConsAlloc<int>>;
-template class std::unordered_multimap<int, int, std::hash<int>,
-                                      std::equal_to<int>,
-                                      __gnu_test::ExplicitConsAlloc<char>>;
+                                      ExplicitConsAlloc<char>>;
+#endif