☰
Debian Codegraph
@
1:21.1.8-7
1:21.1.8-13
1:21.1.8-12
1:21.1.8-11
1:21.1.8-10
/
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
mmap_test.c
☽
☼
compiler-rt/test/sanitizer_common/TestCases/Posix/mmap_test.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <sys/mman.h>
5
6
int main() {
7
char *buf = (char *)mmap(0, 100000, PROT_READ | PROT_WRITE,
8
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
9
assert(buf);
10
munmap(buf, 100000);
11
}