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
[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Linux
/
mmap64_test.c
blob
f4c009d846afb5ca2eb4e935f50d4e601f987ccd
1
// RUN: %clang %s -o %t && %run %t
2
3
#define _LARGEFILE64_SOURCE 1
4
5
#include <assert.h>
6
#include <sys/mman.h>
7
8
int
main
() {
9
char
*
buf
= (
char
*)
mmap64
(
0
,
100000
,
PROT_READ
|
PROT_WRITE
,
10
MAP_PRIVATE
|
MAP_ANONYMOUS
, -
1
,
0
);
11
assert
(
buf
);
12
munmap
(
buf
,
100000
);
13
}