summaryrefslogtreecommitdiff
path: root/test/sanitizer_common
diff options
context:
space:
mode:
Diffstat (limited to 'test/sanitizer_common')
-rw-r--r--test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp b/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
deleted file mode 100644
index 2758322c5..000000000
--- a/test/sanitizer_common/TestCases/Linux/mmap_write_exec.cpp
+++ /dev/null
@@ -1,12 +0,0 @@
-// RUN: %clangxx %s -o %t
-// RUN: %env_tool_opts=detect_write_exec=1 %run %t 2>&1 | FileCheck %s
-// ubsan and lsan do not install mmap interceptors
-// UNSUPPORTED: ubsan, lsan
-
-#include <sys/mman.h>
-
-int main(int argc, char **argv) {
- char *p = (char *)mmap(0, 1024, PROT_READ | PROT_WRITE | PROT_EXEC,
- MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
- // CHECK: WARNING: {{.*}}Sanitizer: writable-executable page usage
-}