brintos

brintos / llvm-project-archived public Read only

0
0
Text · 700 B · 8182e5a Raw
20 lines · c
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 %s8 9// CHECK: Loaded summary for: __size_t fread(void *restrict, size_t, size_t, FILE *restrict)10 11typedef typeof(sizeof(int)) size_t;12typedef struct FILE FILE;13size_t fread(void *restrict, size_t, size_t, FILE *restrict);14 15// Must have at least one call expression to initialize the summary map.16int bar(void);17void foo(void) {18  bar();19}20