summaryrefslogtreecommitdiff
path: root/test/cxa_bad_cast.pass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/cxa_bad_cast.pass.cpp')
-rw-r--r--test/cxa_bad_cast.pass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cxa_bad_cast.pass.cpp b/test/cxa_bad_cast.pass.cpp
index c863d6f..d2c3bf9 100644
--- a/test/cxa_bad_cast.pass.cpp
+++ b/test/cxa_bad_cast.pass.cpp
@@ -40,6 +40,7 @@ int main ()
#endif
Derived &d = test_bad_cast(gB);
assert(false);
+ ((void)d);
#ifndef LIBCXXABI_HAS_NO_EXCEPTIONS
} catch (std::bad_cast) {
// success