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