]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/experimental/optional/relops/5.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / experimental / optional / relops / 5.cc
index c7b27bbabbbec29b5a5a13c59b0cd96ebd3c8b97..6f013cae673b3226a33e95594853697ffc756f2a 100644 (file)
@@ -1,7 +1,6 @@
-// { dg-options "-std=gnu++1y" }
-// { dg-do run }
+// { dg-do run { target c++14 } }
 
-// Copyright (C) 2013 Free Software Foundation, Inc.
+// Copyright (C) 2013-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
@@ -14,7 +13,7 @@
 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 // GNU General Public License for more details.
 
-// You should have received a moved_to of the GNU General Public License along
+// You should have received a copy of the GNU General Public License along
 // with this library; see the file COPYING3.  If not see
 // <http://www.gnu.org/licenses/>.
 
@@ -36,10 +35,6 @@ namespace ns
   operator==(value_type const& lhs, value_type const& rhs)
   { return std::tie(lhs.i, lhs.s) == std::tie(rhs.i, rhs.s); }
 
-  bool
-  operator!=(value_type const& lhs, value_type const& rhs)
-  { return !(lhs == rhs); }
-
   bool
   operator<(value_type const& lhs, value_type const& rhs)
   { return std::tie(lhs.i, lhs.s) < std::tie(rhs.i, rhs.s); }