| // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.DumpTraversal %s | FileCheck %s |
| // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.DumpTraversal -DUSE_EXPR %s | FileCheck %s |
| #define CHECK(x) ((x) & 1) |
| // CHECK: --BEGIN FUNCTION-- |
| void testRemoveDeadBindings() { |
| // At this point the symbol bound to 'i' is dead. |
| // The effects of a() and b() are identical (they both invalidate globals). |
| // We should unify the two paths here and only get one end-of-path node. |
| // CHECK: --END FUNCTION-- |
| // CHECK-NOT: --END FUNCTION-- |