xref: /aosp_15_r20/external/compiler-rt/test/sanitizer_common/TestCases/fopen_nullptr.c (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1 // Check that fopen(NULL, "r") is ok.
2 // RUN: %clang -O2 %s -o %t && %run %t
3 #include <stdio.h>
4 const char *fn = NULL;
5 FILE *f;
main()6 int main() { f = fopen(fn, "r"); }
7