You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
649 B
19 lines
649 B
// RUN: %clang_analyze_cc1 %s \
|
|
// RUN: -analyzer-checker=core \
|
|
// RUN: -analyzer-checker=apiModeling.StdCLibraryFunctions \
|
|
// RUN: -analyzer-checker=alpha.unix.StdCLibraryFunctionArgs \
|
|
// RUN: -analyzer-checker=debug.StdCLibraryFunctionsTester \
|
|
// RUN: -analyzer-checker=debug.ExprInspection \
|
|
// RUN: -analyzer-config eagerly-assume=false \
|
|
// RUN: -triple i686-unknown-linux \
|
|
// RUN: -verify
|
|
|
|
void clang_analyzer_eval(int);
|
|
|
|
int __defaultparam(void *, int y = 3);
|
|
|
|
void test_arg_constraint_on_fun_with_default_param() {
|
|
__defaultparam(nullptr); // \
|
|
// expected-warning{{Function argument constraint is not satisfied}}
|
|
}
|