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
/
mallinfo.cpp
blob
3c3692969852f9bb7567455608f8873347b23074
1
// RUN: %clangxx_msan -O0 -g %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <malloc.h>
5
6
#include <sanitizer/msan_interface.h>
7
8
int
main
(
void
) {
9
struct
mallinfo mi
=
mallinfo
();
10
assert
(
__msan_test_shadow
(&
mi
,
sizeof
(
mi
)) == -
1
);
11
return
0
;
12
}