]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/minmax/3.cc
re PR libstdc++/40600 (pair& operator=(pair&& __p) doesn't work without inlining)
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / minmax / 3.cc
index 5e896e208f727ac965b391137d1d33124e436165..f0944b0bfde8db28c89d26109245a339c456d7d6 100644 (file)
@@ -41,8 +41,8 @@ void test01()
 {
   bool test __attribute__((unused)) = true;
 
-  std::pair<const int&, const int&> z = std::minmax({1, 2, 3, 4, 5, 6, 7, 8},
-                                                   compare_counter());
+  std::pair<int, int> z = std::minmax({1, 2, 3, 4, 5, 6, 7, 8},
+                                     compare_counter());
 
   // If N is the number of arguments in the minmax function call, 
   // 25.3.7 specifies that at most 3N/2 comparisons are allowed.