1// RUN: %clang_asan %s -o %t
2// RUN: %run %t 2>&1 | FileCheck %s
3
4#include <stdio.h>
5#include <stdlib.h>
6
7int main(int argc, const char * argv[]) {
8 fclose(NULL);
9 fprintf(stderr, format: "Finished.\n");
10 return 0;
11}
12
13// CHECK: Finished.
14

source code of compiler-rt/test/asan/TestCases/Darwin/fclose.c