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
/
sanitizer_common
/
TestCases
/
Posix
/
mmap_test.c
blob
3c272f95a015c2d9d74989056af9a9921a492cc8
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
}