aboutsummaryrefslogtreecommitdiff
path: root/tests/fdstream/driver.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fdstream/driver.cxx')
-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&)
{
}