Mercurial > hg > CbC > CbC_llvm
view clang/test/Analysis/std-c-library-functions-arg-constraints.cpp @ 173:0572611fdcc8 llvm10 llvm12
reorgnization done
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 11:55:54 +0900 |
parents | |
children | 2e18cbf3894f |
line wrap: on
line source
// RUN: %clang_analyze_cc1 %s \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-checker=apiModeling.StdCLibraryFunctions \ // RUN: -analyzer-checker=alpha.apiModeling.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}} }