summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/exit1.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/exit1.c b/tests/exit1.c
new file mode 100644
index 0000000..2f31383
--- /dev/null
+++ b/tests/exit1.c
@@ -0,0 +1,14 @@
+/*
+ * Test for pthread_exit().
+ *
+ * Depends on API functions: None.
+ */
+
+#include <pthread.h>
+
+int
+main(int argc, char * argv[])
+{
+ /* A simple test firstly. */
+ pthread_exit((void *) 2);
+}