Commit 958dc0c2 by Jonathan Wakely Committed by Jonathan Wakely

PR libstdc++/53984 fix failing test

	PR libstdc++/53984
	* testsuite/27_io/basic_fstream/53984.cc: Fix test.

From-SVN: r250594
parent 63c0f543
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment