1 // RUN: %clang_analyze_cc1 %s -verify \
2 // RUN: -analyzer-checker=unix.StdCLibraryFunctions \
3 // RUN: -analyzer-checker=core
5 typedef __typeof(sizeof(int)) size_t;
8 typedef struct FILE FILE;
10 size_t fread(void *restrict
, size_t, size_t, FILE *restrict
) __attribute__((nonnull(1)));
14 fread(p
, sizeof(int), 5, F
); // expected-warning{{Null pointer passed to 1st parameter expecting 'nonnull' [core.NonNullParamChecker]}}