summaryrefslogtreecommitdiffstats
path: root/devel/libhoard/files/testos.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libhoard/files/testos.c')
-rw-r--r--devel/libhoard/files/testos.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/libhoard/files/testos.c b/devel/libhoard/files/testos.c
new file mode 100644
index 0000000..c4413db
--- /dev/null
+++ b/devel/libhoard/files/testos.c
@@ -0,0 +1,16 @@
+#include <pthread.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+int
+main(int argc, char *argv[])
+{
+ static int level;
+
+ level = pthread_getconcurrency();
+ (void)pthread_setconcurrency(level++);
+
+ printf("LIBC_R TEST PASSED: All ok\n");
+
+ exit(0);
+}
OpenPOWER on IntegriCloud