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>
main()5 int main() { closedir(0); }
6