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:
Jonathan Wakely 2017-07-26 23:06:13 +01:00 committed by Jonathan Wakely
parent 63c0f54325
commit 958dc0c224
2 changed files with 11 additions and 4 deletions

View File

@ -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

View File

@ -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