bolt/deps/llvm-18.1.8/compiler-rt/test/sanitizer_common/TestCases/fopen_nullptr.c

7 lines
163 B
C
Raw Normal View History

2025-02-14 19:21:04 +01:00
// Check that fopen(NULL, "r") is ok.
// RUN: %clang -O2 %s -o %t && %run %t
#include <stdio.h>
const char *fn = NULL;
FILE *f;
int main() { f = fopen(fn, "r"); }