summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/TestCases/NetBSD/faccessat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/test/sanitizer_common/TestCases/NetBSD/faccessat.cpp')
-rw-r--r--compiler-rt/test/sanitizer_common/TestCases/NetBSD/faccessat.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/NetBSD/faccessat.cpp b/compiler-rt/test/sanitizer_common/TestCases/NetBSD/faccessat.cpp
new file mode 100644
index 00000000000..ae8be1962b8
--- /dev/null
+++ b/compiler-rt/test/sanitizer_common/TestCases/NetBSD/faccessat.cpp
@@ -0,0 +1,6 @@
+// RUN: %clangxx -O0 -g %s -o %t && %run %t
+
+#include <fcntl.h>
+#include <unistd.h>
+
+int main(void) { return faccessat(AT_FDCWD, "/root", F_OK, 0); }
OpenPOWER on IntegriCloud