Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / std-c-library-functions-lookup.c
blobe47d9bddda91b51ae5c9e43a24a2e5c9bd8ef03e
1 // RUN: %clang_analyze_cc1 %s \
2 // RUN: -analyzer-checker=core \
3 // RUN: -analyzer-checker=unix.StdCLibraryFunctions \
4 // RUN: -analyzer-config unix.StdCLibraryFunctions:DisplayLoadedSummaries=true \
5 // RUN: -analyzer-checker=debug.ExprInspection \
6 // RUN: -analyzer-config eagerly-assume=false \
7 // RUN: -triple i686-unknown-linux 2>&1 | FileCheck %s
9 // CHECK: Loaded summary for: unsigned int fread(void *restrict, size_t, size_t, FILE *restrict)
11 typedef typeof(sizeof(int)) size_t;
12 typedef struct FILE FILE;
13 size_t fread(void *restrict, size_t, size_t, FILE *restrict);
15 // Must have at least one call expression to initialize the summary map.
16 int bar(void);
17 void foo(void) {
18 bar();