diff options
Diffstat (limited to 'test/Analysis/castexpr-callback.c')
-rw-r--r-- | test/Analysis/castexpr-callback.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Analysis/castexpr-callback.c b/test/Analysis/castexpr-callback.c new file mode 100644 index 000000000000..73fa17a134a8 --- /dev/null +++ b/test/Analysis/castexpr-callback.c @@ -0,0 +1,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) |