]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/40600 (pair& operator=(pair&& __p) doesn't work without inlining)
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 30 Jun 2009 12:09:57 +0000 (12:09 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 30 Jun 2009 12:09:57 +0000 (12:09 +0000)
2009-06-30  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/40600
* testsuite/25_algorithms/minmax/2.cc: Fix consistently with
std::minmax return type.
* testsuite/25_algorithms/minmax/3.cc: Likewise.

From-SVN: r149094

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/25_algorithms/minmax/2.cc
libstdc++-v3/testsuite/25_algorithms/minmax/3.cc

index 7b125569f4ae388783f175bfeb2634ebc33d6eac..963bc23f3999fd2648b50b44bb9394c0d894e4b0 100644 (file)
@@ -1,3 +1,10 @@
+2009-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       PR libstdc++/40600
+       * testsuite/25_algorithms/minmax/2.cc: Fix consistently with
+       std::minmax return type.
+       * testsuite/25_algorithms/minmax/3.cc: Likewise.
+
 2009-06-30  Paolo Carlini  <paolo.carlini@oracle.com>
 
        PR libstdc++/40511
index 9818c5ca1dd0d3c0b327c5ae25d91a41a0f913d1..6c4200eeffbb018973d781edbf0a9594d35f4271 100644 (file)
@@ -27,25 +27,25 @@ void test01()
 {
   bool test __attribute__((unused)) = true;
 
-  std::pair<const int&, const int&> z = std::minmax({1, 2, 3});
-  std::pair<const int&, const int&> w = std::minmax({4, 3, 5, 4});
-  std::pair<const int&, const int&> y = std::minmax({4, 5, 3, 7, 3});
+  std::pair<int, int> z = std::minmax({1, 2, 3});
+  std::pair<int, int> w = std::minmax({4, 3, 5, 4});
+  std::pair<int, int> y = std::minmax({4, 5, 3, 7, 3});
   VERIFY( z.first == 1 );
   VERIFY( z.second == 3 );
   VERIFY( w.first == 3 );
   VERIFY( w.second == 5 );
   VERIFY( y.first == 3 );
   VERIFY( y.second == 7 );
-  
-  std::pair<const int&, const int&> zc = 
+
+  std::pair<int, int> zc =
     std::minmax({1, 2, 3}, std::greater<int>());
-  
-  std::pair<const int&, const int&> wc = 
+
+  std::pair<int, int> wc =
     std::minmax({4, 3, 5, 4}, std::greater<int>());
-    
-  std::pair<const int&, const int&> yc = 
+
+  std::pair<int, int> yc =
     std::minmax({4, 5, 3, 7, 3}, std::greater<int>());
-    
+
   VERIFY( zc.first == 3 );
   VERIFY( zc.second == 1 );
   VERIFY( wc.first == 5 );
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.