summaryrefslogtreecommitdiffstats
path: root/tools/regression/pthread/unwind/main_thread_exit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/pthread/unwind/main_thread_exit.cpp')
-rw-r--r--tools/regression/pthread/unwind/main_thread_exit.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/regression/pthread/unwind/main_thread_exit.cpp b/tools/regression/pthread/unwind/main_thread_exit.cpp
new file mode 100644
index 0000000..182c194
--- /dev/null
+++ b/tools/regression/pthread/unwind/main_thread_exit.cpp
@@ -0,0 +1,18 @@
+/* $FreeBSD$ */
+/* check unwinding for main thread */
+
+#include <pthread.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "Test.cpp"
+
+int
+main()
+{
+ Test test;
+
+ atexit(check_destruct);
+ pthread_exit((void *)1);
+ return (0);
+}
OpenPOWER on IntegriCloud