15 lines · cpp
1// RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux -analyzer-checker=unix.StdCLibraryFunctions,debug.ExprInspection -verify %s2 3// Test that we don't model functions with broken prototypes.4// Because they probably work differently as well.5//6// This test lives in a separate file because we wanted to test all functions7// in the .c file, however in C there are no overloads.8 9void clang_analyzer_eval(bool);10bool isalpha(char);11 12void test() {13 clang_analyzer_eval(isalpha('A')); // no-crash // expected-warning{{UNKNOWN}}14}15