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
[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
Linux
/
mallinfo2.cpp
blob
5e6e5d952ff1bc956a9842c6e3e26af209b0cad3
1
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2
// REQUIRES: glibc-2.33
3
4
#include <assert.h>
5
#include <malloc.h>
6
7
#include <sanitizer/msan_interface.h>
8
9
int
main
(
void
) {
10
struct
mallinfo2 mi2
=
mallinfo2
();
11
assert
(
__msan_test_shadow
(&
mi2
,
sizeof
(
mi2
)) == -
1
);
12
return
0
;
13
}