]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/20_util/tuple/cons/deduction.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 20_util / tuple / cons / deduction.cc
index 158d132d6ef1522e1c2141bef1fda79db36b7e32..af09c971f000ee19f3cfadb87ff2156cb1b48bb4 100644 (file)
@@ -1,7 +1,7 @@
 // { dg-options "-std=gnu++17" }
 // { dg-do compile { target c++17 } }
 
-// Copyright (C) 2017-2018 Free Software Foundation, Inc.
+// Copyright (C) 2017-2021 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
@@ -19,6 +19,7 @@
 // <http://www.gnu.org/licenses/>.
 
 #include <tuple>
+#include <memory>
 
 template<typename T, typename U> struct require_same;
 template<typename T> struct require_same<T, T> { using type = void; };
@@ -123,10 +124,8 @@ test04()
   std::pair<int, unsigned> p;
   std::tuple x = p;
   check_type<std::tuple<int, unsigned>>(x);
-  int y = 42;
   std::tuple x2{p};
   check_type<std::tuple<int, unsigned>>(x2);
-  const int z = 666;
   std::pair<const int, unsigned> p2;
   std::tuple x3{p2};
   check_type<std::tuple<const int, unsigned>>(x3);