xref: /aosp_15_r20/external/compiler-rt/test/sanitizer_common/TestCases/Linux/closedir.c (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
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