Sign in
◑
Theme
llvm
/
llvm-project
/
compiler-rt
/
refs/heads/main
/
.
/
test
/
sanitizer_common
/
TestCases
/
Linux
/
fopen64_nullptr.c
blob: 0736d5c00a913d2b72bb56c798348331934b24e9 [
file
] [
edit
]
// Check that fopen64(NULL, "r") is ok.
// RUN: %clang -O2 %s -o %t && %run %t
// REQUIRES: glibc
#define
_LARGEFILE64_SOURCE
1
#include
<stdio.h>
const
char
*
fn
=
NULL
;
FILE
*
f
;
int
main
()
{
f
=
fopen64
(
fn
,
"r"
);
}