diff options
Diffstat (limited to 'libstdc++-v3/testsuite/27_io/fpos.cc')
-rw-r--r-- | libstdc++-v3/testsuite/27_io/fpos.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libstdc++-v3/testsuite/27_io/fpos.cc b/libstdc++-v3/testsuite/27_io/fpos.cc index ef290bc5d8a..6e852fd9486 100644 --- a/libstdc++-v3/testsuite/27_io/fpos.cc +++ b/libstdc++-v3/testsuite/27_io/fpos.cc @@ -1,6 +1,6 @@ // 1999-09-20 bkoz -// Copyright (C) 1999 Free Software Foundation, Inc. +// Copyright (C) 1999, 2001 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 @@ -107,12 +107,18 @@ void test02() pos03 = pos03 + off02; pos04 += off02; VERIFY( pos03 == pos04 ); + std::streampos pos05 = pos03; + std::streampos pos06 = pos03 + off02; + VERIFY ( pos05 == pos03 ); // q = p - o // p -= o pos03 = pos03 - off02; pos04 -= off02; VERIFY( pos03 == pos04 ); + std::streampos pos07 = pos03; + std::streampos pos08 = pos03 - off02; + VERIFY ( pos07 == pos03 ); // o = p - q VERIFY( 0 == pos03 - pos04 ); @@ -171,7 +177,3 @@ int main() { test03(); return 0; } - - - - |