blob: 960dda334a612129523f558e28425851c9dd6c96 [file] [log] [blame]
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -08001// Check that fopen(NULL, "r") is ok.
2// RUN: %clang -O2 %s -o %t && %run %t
3#include <stdio.h>
4const char *fn = NULL;
5FILE *f;
6int main() { f = fopen(fn, "r"); }