☰
Debian Codegraph
@
1:21.1.8-7
1:21.1.8-13
1:21.1.8-12
1:21.1.8-11
1:21.1.8-10
/
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
fopen_nullptr.c
☽
☼
compiler-rt/test/sanitizer_common/TestCases/fopen_nullptr.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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;
6
int main() { f = fopen(fn, "r"); }