brintos

brintos / llvm-project-archived public Read only

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