PR libstdc++/71004
* testsuite/experimental/filesystem/iterators/
recursive_directory_iterator.cc: Fix test02 to not call member
functions on invalid iterator, and use VERIFY not assert.
From-SVN: r236028
+2016-05-09 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/71004
+ * testsuite/experimental/filesystem/iterators/
+ recursive_directory_iterator.cc: Fix test02 to not call member
+ functions on invalid iterator, and use VERIFY not assert.
+
2016-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
Avoid endless run-time recursion for copying single-element
void
test02()
{
+ bool test __attribute__((unused)) = false;
+
// libstdc++71004
const fs::recursive_directory_iterator it;
- assert( it.options() == fs::directory_options{} );
- assert( it.depth() == 0 );
- assert(it.recursion_pending() == false);
+ VERIFY( it == fs::recursive_directory_iterator() );
}
int
main()
{
test01();
+ test02();
}