summaryrefslogtreecommitdiff
path: root/source/test/programs/signals.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/test/programs/signals.cpp')
-rw-r--r--source/test/programs/signals.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/test/programs/signals.cpp b/source/test/programs/signals.cpp
index d468d83..868e9c0 100644
--- a/source/test/programs/signals.cpp
+++ b/source/test/programs/signals.cpp
@@ -2,6 +2,12 @@
#include <cstdio>
#include <cstdlib>
+#include <stdexcept>
+
+TEST("c++ exception") {
+ printf("** C++ EXCEPTION\n\n");
+ throw std::exception {};
+}
TEST("abort") {
printf("** ABORT\n\n");