rename testcase 106
[tinycc.git] / tests / tests2 / 106_versym.c
blobdcce5089a985aeb347ffc2fc26d4db1010041b20
1 #include <stdio.h>
2 #include <pthread.h>
3 #include <errno.h>
5 int
6 main(void)
8 int ret;
9 pthread_condattr_t attr;
10 pthread_cond_t condition;
12 /* This test fails if symbol versioning does not work */
13 pthread_condattr_init (&attr);
14 pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED);
15 printf ("%s\n", pthread_cond_init (&condition, &attr) ? "fail":"ok");
16 pthread_condattr_destroy (&attr);
17 return 0;