]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/25_algorithms/next_permutation/moveable.cc
Update copyright years in libstdc++-v3/
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 25_algorithms / next_permutation / moveable.cc
index d754f6b3c287f03de263e1ede6d8a51cdb895e86..4c809bc5b8fa127287470a79d40941a196b80a30 100644 (file)
@@ -1,6 +1,6 @@
 // { dg-options "-std=gnu++0x" }
 
-// Copyright (C) 2009 Free Software Foundation, Inc.
+// Copyright (C) 2009-2014 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
@@ -78,8 +78,13 @@ test4()
       std::copy(array, array + 6, temp_array);
       Container con(temp_array, temp_array + 6);
       VERIFY( next_permutation(array, array + 6) );
+
+// XXX FIXME:  parallel-mode should deal correctly with moveable-only types
+// per C++0x, at minimum smoothly fall back to serial.
+#ifndef _GLIBCXX_PARALLEL
       VERIFY( std::lexicographical_compare(temp_array, temp_array + 6, 
                                           array, array + 6) );
+#endif
     }
   VERIFY( !next_permutation(array,array + 6) );
   for(int i = 0; i < 6; ++i)
@@ -102,8 +107,13 @@ test5()
       std::copy(array, array + 6, temp_array);
       Container con(temp_array, temp_array + 6);
       VERIFY( next_permutation(array, array + 6, are_ordered) );
+
+// XXX FIXME:  parallel-mode should deal correctly with moveable-only types
+// per C++0x, at minimum smoothly fall back to serial.
+#ifndef _GLIBCXX_PARALLEL
       VERIFY( std::lexicographical_compare(temp_array, temp_array + 6,
                                           array, array + 6, are_ordered) );
+#endif
     }
   VERIFY( !next_permutation(array,array + 6, are_ordered) );
   for(int i = 0; i < 6; ++i)