llvm-project/clang/test/Analysis/std-c-library-functions.cpp
Dominic Chen 8589e10c30 Revert "[analyzer] NFC: Update test infrastructure to support multiple constraint managers"
This reverts commit 8e7780b9e59ddaad1800baf533058d2c064d4787.

llvm-svn: 296317
2017-02-27 03:29:25 +00:00

15 lines
534 B
C++

// RUN: %clang_cc1 -triple x86_64-unknown-linux -analyze -analyzer-checker=unix.StdCLibraryFunctions,debug.ExprInspection -verify %s
// Test that we don't model functions with broken prototypes.
// Because they probably work differently as well.
//
// This test lives in a separate file because we wanted to test all functions
// in the .c file, however in C there are no overloads.
void clang_analyzer_eval(bool);
bool isalpha(char);
void test() {
clang_analyzer_eval(isalpha('A')); // no-crash // expected-warning{{UNKNOWN}}
}