1 // RUN: %clangxx -O0 %s -o %t && %run %t
3 // pthread_mutexattr_setpshared and pthread_mutexattr_getpshared unavailable
4 // UNSUPPORTED: target={{.*netbsd.*}}
10 pthread_mutexattr_t ma
;
11 int res
= pthread_mutexattr_init(&ma
);
13 res
= pthread_mutexattr_setpshared(&ma
, 1);
16 res
= pthread_mutexattr_getpshared(&ma
, &pshared
);
19 res
= pthread_mutexattr_destroy(&ma
);