treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / tools / build / feature / test-pthread-barrier.c
blob0558d9334d971be555aab202df534ef5c5afdf15
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdint.h>
3 #include <pthread.h>
5 int main(void)
7 pthread_barrier_t barrier;
9 pthread_barrier_init(&barrier, NULL, 1);
10 pthread_barrier_wait(&barrier);
11 return pthread_barrier_destroy(&barrier);