regression test for robust mutext in detached thread
[libc-test] / src / api / semaphore.c
1 #include <semaphore.h>
2 static void f()
3 {
4 {sem_t *x = SEM_FAILED;}
5 {int(*p)(sem_t*) = sem_close;}
6 {int(*p)(sem_t*) = sem_destroy;}
7 {int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;}
8 {int(*p)(sem_t*,int,unsigned) = sem_init;}
9 {sem_t*(*p)(const char*,int,...) = sem_open;}
10 {int(*p)(sem_t*) = sem_post;}
11 {int(*p)(sem_t*) = sem_trywait;}
12 {int(*p)(const char*) = sem_unlink;}
13 {int(*p)(sem_t*) = sem_wait;}
14 }
15 #include <time.h>
16 static void g()
17 {
18 {int(*p)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;}
19 }