Mercurial > hg > CbC > CbC_llvm
diff clang/test/Analysis/iterator-modeling-no-aggressive-binary-operation-simplification-no-crash.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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clang/test/Analysis/iterator-modeling-no-aggressive-binary-operation-simplification-no-crash.cpp Mon May 25 11:55:54 2020 +0900 @@ -0,0 +1,15 @@ +// RUN: %clang_analyze_cc1 -std=c++11\ +// RUN: -analyzer-checker=core,cplusplus,debug.DebugIteratorModeling,debug.ExprInspection\ +// RUN: %s 2>&1 | FileCheck %s + +// XFAIL: * + +// CHECK: checker cannot be enabled with analyzer option 'aggressive-binary-operation-simplification' == false + +#include "Inputs/system-header-simulator-cxx.h" + +void clang_analyzer_eval(bool); + +void comparison(std::vector<int> &V) { + clang_analyzer_eval(V.begin() == V.end()); // no-crash +}