* testsuite/24_iterators/reverse_iterator/71771.cc: Replace calls to
C++14 std::rbegin and std::rend. Use dg-options instead of
effective-target.
From-SVN: r242764
+2016-11-23 Jonathan Wakely <jwakely@redhat.com>
+
+ * testsuite/24_iterators/reverse_iterator/71771.cc: Replace calls to
+ C++14 std::rbegin and std::rend. Use dg-options instead of
+ effective-target.
+
2016-11-22 Uros Bizjak <ubizjak@gmail.com>
* testsuite/Makefile.am
// with this library; see the file COPYING3. If not see
// <http://www.gnu.org/licenses/>.
-// { dg-do compile { target c++11 } }
+// { dg-options "-std=gnu++11" }
+// { dg-do compile }
#include <iterator>
#include <testsuite_iterators.h>
{
int i[2];
__gnu_test::test_container<int, __gnu_test::bidirectional_iterator_wrapper>
- c(i);
- diff2(std::rbegin(c), std::rend(c));
+ c(i, i+2);
+ using reverse_iterator
+ = std::reverse_iterator<__gnu_test::bidirectional_iterator_wrapper<int>>;
+ diff2(reverse_iterator(c.end()), reverse_iterator(c.begin()));
}