summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/castexpr-callback.c
blob: 73fa17a134a8411635bb9f7726886400a13bccaa (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 -analyze -analyzer-checker=debug.AnalysisOrder -analyzer-config debug.AnalysisOrder:PreStmtCastExpr=true,debug.AnalysisOrder:PostStmtCastExpr=true %s 2>&1 | FileCheck %s

void test(char c) {
  int i = (int)c;
}

// CHECK: PreStmt<CastExpr> (Kind : LValueToRValue)
// CHECK-NEXT: PostStmt<CastExpr> (Kind : LValueToRValue)
// CHECK-NEXT: PreStmt<CastExpr> (Kind : IntegralCast)
// CHECK-NEXT: PostStmt<CastExpr> (Kind : IntegralCast)
OpenPOWER on IntegriCloud