1// Check that closedir(NULL) is ok.
2// RUN: %clang -O2 %s -o %t && %run %t
3#include <sys/types.h>
4#include <dirent.h>
5int main() { closedir(dirp: 0); }
6

source code of compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c