blob: 4b7c52db546278a37545ffd18ad5a062b0df2b1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}
|