Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Posix / mmap_test.c
blob3c272f95a015c2d9d74989056af9a9921a492cc8
1 // RUN: %clang %s -o %t && %run %t
3 #include <assert.h>
4 #include <sys/mman.h>
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);