Sign in
nest-open-source
/
nest-cam
/
4320010
/
compiler-rt
/
014de64a7b1162920a4db16b4f186931df62bd0b
/
.
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
fopen_nullptr.c
blob: 960dda334a612129523f558e28425851c9dd6c96 [
file
] [
log
] [
blame
]
// 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"
);
}