summaryrefslogtreecommitdiff
path: root/test-mmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'test-mmap.c')
-rw-r--r--test-mmap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test-mmap.c b/test-mmap.c
new file mode 100644
index 000000000000..db8fd8732e4d
--- /dev/null
+++ b/test-mmap.c
@@ -0,0 +1,10 @@
+#include <sys/types.h>
+#include <sys/mman.h>
+
+int
+main(int argc, char **argv)
+{
+
+ mmap(0, 0, PROT_READ, MAP_FILE|MAP_SHARED, -1, 0);
+ return 0;
+}