Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
compiler-rt
/
799172d60d32feb1acba1a6867f3a9c39a999e5c
/
.
/
test
/
sanitizer_common
/
TestCases
/
fopen_nullptr.c
blob: 960dda334a612129523f558e28425851c9dd6c96 [
file
] [
log
] [
blame
]
Pirama Arumuga Nainar
799172d
2016-03-03 15:50:30 -0800
[
diff
] [
blame^
]
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"
);
}