mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
PR libstdc++/53984 fix failing test
PR libstdc++/53984 * testsuite/27_io/basic_fstream/53984.cc: Fix test. From-SVN: r250594
This commit is contained in:
parent
63c0f54325
commit
958dc0c224
@ -1,3 +1,7 @@
|
||||
2017-07-26 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* testsuite/27_io/basic_fstream/53984.cc: Fix test.
|
||||
|
||||
2017-07-26 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* testsuite/27_io/basic_fstream/53984.cc: Fix typo in dg-require
|
||||
|
@ -23,10 +23,13 @@
|
||||
void
|
||||
test01()
|
||||
{
|
||||
std::fstream in(".");
|
||||
int x;
|
||||
in >> x;
|
||||
VERIFY( in.bad() );
|
||||
std::ifstream in(".");
|
||||
if (in)
|
||||
{
|
||||
int x;
|
||||
in >> x;
|
||||
VERIFY( in.bad() );
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user