You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
163 B

// 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"); }