]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/sanitizer_common/TestCases/pthread_mutexattr_get.cc
1 // RUN: %clangxx -O0 %s -o %t && %run %t
7 pthread_mutexattr_t ma
;
8 int res
= pthread_mutexattr_init(&ma
);
10 res
= pthread_mutexattr_setpshared(&ma
, 1);
13 res
= pthread_mutexattr_getpshared(&ma
, &pshared
);
16 res
= pthread_mutexattr_destroy(&ma
);