mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
19 lines
421 B
C
19 lines
421 B
C
#include <stdio.h>
|
|
#include <pthread.h>
|
|
#include <errno.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
int ret;
|
|
pthread_condattr_t attr;
|
|
pthread_cond_t condition;
|
|
|
|
/* This test fails if symbol versioning does not work */
|
|
pthread_condattr_init (&attr);
|
|
pthread_condattr_setpshared (&attr, PTHREAD_PROCESS_SHARED);
|
|
printf ("%s\n", pthread_cond_init (&condition, &attr) ? "fail":"ok");
|
|
pthread_condattr_destroy (&attr);
|
|
return 0;
|
|
}
|