aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fdstream')
-rw-r--r--tests/fdstream/driver.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fdstream/driver.cxx b/tests/fdstream/driver.cxx
index 0c6c480..03eab80 100644
--- a/tests/fdstream/driver.cxx
+++ b/tests/fdstream/driver.cxx
@@ -263,9 +263,9 @@ main ()
try
{
ofdstream ofs (f);
- throw true;
+ throw ios::failure ("test");
}
- catch (bool)
+ catch (const ios::failure&)
{
}