diff options
Diffstat (limited to 'compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c')
-rw-r--r-- | compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c new file mode 100644 index 00000000000..990628db402 --- /dev/null +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c @@ -0,0 +1,5 @@ +// Check that closedir(NULL) is ok. +// RUN: %clang -O2 %s -o %t && %run %t +#include <sys/types.h> +#include <dirent.h> +int main() { closedir(0); } |