1*afcb77ccSAdam Balogh // RUN: %clang_analyze_cc1 -std=c++11\ 2*afcb77ccSAdam Balogh // RUN: -analyzer-checker=core,cplusplus,debug.DebugIteratorModeling,debug.ExprInspection\ 3*afcb77ccSAdam Balogh // RUN: %s 2>&1 | FileCheck %s 4*afcb77ccSAdam Balogh 5*afcb77ccSAdam Balogh // XFAIL: * 6*afcb77ccSAdam Balogh 7*afcb77ccSAdam Balogh // CHECK: checker cannot be enabled with analyzer option 'aggressive-binary-operation-simplification' == false 8*afcb77ccSAdam Balogh 9*afcb77ccSAdam Balogh #include "Inputs/system-header-simulator-cxx.h" 10*afcb77ccSAdam Balogh 11*afcb77ccSAdam Balogh void clang_analyzer_eval(bool); 12*afcb77ccSAdam Balogh comparison(std::vector<int> & V)13*afcb77ccSAdam Baloghvoid comparison(std::vector<int> &V) { 14*afcb77ccSAdam Balogh clang_analyzer_eval(V.begin() == V.end()); // no-crash 15*afcb77ccSAdam Balogh } 16