Add DRD suppression patterns for races triggered by std::ostream
[valgrind.git] / drd / tests / pth_barrier_reinit.c
blobfc87b1978af01ebafc086f9c139aef434613cad0
1 /** Trigger barrier reinitialization, which is not allowed by the POSIX
2 * threads standard. See also http://www.opengroup.org/onlinepubs/000095399/functions/pthread_barrier_init.html.
3 */
6 #define _GNU_SOURCE
8 #include <pthread.h>
11 int main(int argc, char** argv)
13 pthread_barrier_t b;
14 pthread_barrier_init(&b, 0, 1);
15 pthread_barrier_init(&b, 0, 1);
16 return 0;