aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/27_io/istream_seeks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/istream_seeks.cc')
-rw-r--r--libstdc++-v3/testsuite/27_io/istream_seeks.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/libstdc++-v3/testsuite/27_io/istream_seeks.cc b/libstdc++-v3/testsuite/27_io/istream_seeks.cc
index dac5f3cf9eb..6574b0a059b 100644
--- a/libstdc++-v3/testsuite/27_io/istream_seeks.cc
+++ b/libstdc++-v3/testsuite/27_io/istream_seeks.cc
@@ -229,7 +229,14 @@ void test04(void)
VERIFY( pos05 == pos06 + off_type(10) );
VERIFY( state01 == state02 );
pos06 = is03.tellg();
- VERIFY( pos05 == pos06 );
+ VERIFY( pos05 == pos06 );
+
+ // libstdc++/6414
+ if01.seekg(0, std::ios_base::beg);
+ pos01 = if01.tellg();
+ if01.peek();
+ pos02 = if01.tellg();
+ VERIFY( pos02 == pos01 );
#ifdef DEBUG_ASSERT
assert(test);