blob: 87f84fa881186712e3fcf9c6b245635559c1eb53 [file] [log] [blame]
Artem Dergacheve602dfb2018-10-02 20:50:40 +00001// RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux -analyzer-checker=apiModeling.StdCLibraryFunctions,debug.ExprInspection -verify %s
Artem Dergachevbba497f2016-10-24 09:41:38 +00002
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 functions
7// 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}