repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
Linux
/
pthread_getaffinity_np.cpp
blob
e87b898a7bc5dee6fd0c549cc7db0c6c5d47f823
1
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <pthread.h>
5
6
#include <sanitizer/msan_interface.h>
7
8
int
main
() {
9
cpu_set_t set_x
[
4
];
10
int
res
=
pthread_getaffinity_np
(
pthread_self
(),
sizeof
(
set_x
),
set_x
);
11
assert
(
res
==
0
);
12
__msan_check_mem_is_initialized
(
set_x
,
sizeof
(
set_x
));
13
14
return
0
;
15
}