blob: 00b341af5f9226810e0243c06e4164d9adcb5462 [file] [log] [blame]
Dominic Chen184c6242017-03-03 18:02:02 +00001// RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux -analyzer-checker=unix.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}