// FIXME: Figure out how to use %clang_analyze_cc1 with our lit.local.cfg. // RUN: %clang_cc1 -analyze -triple x86_64-unknown-linux-gnu \ // RUN: -analyze-function "test()" \ // RUN: -analyzer-checker=core \ // RUN: -analyzer-dump-egraph=%t.dot %s // RUN: %exploded_graph_rewriter %t.dot | FileCheck %s // REQUIRES: asserts struct S { S() {} }; void test() { // CHECK: Objects Under Construction: // CHECK-SAME: // CHECK-SAME: #0 Call // CHECK-SAME: // CHECK-SAME: test // CHECK-SAME: // CHECK-SAME: // CHECK-SAME: // CHECK-SAME: S{{[0-9]*}} // CHECK-SAME: // CHECK-SAME: (materialize temporary) // CHECK-SAME: // CHECK-SAME: S() // CHECK-SAME: &s // CHECK-SAME: // CHECK-SAME: // CHECK-SAME: S{{[0-9]*}} // CHECK-SAME: // CHECK-SAME: (elide constructor) // CHECK-SAME: // CHECK-SAME: S() // CHECK-SAME: &s // CHECK-SAME: // CHECK-SAME: // CHECK-SAME: S{{[0-9]*}} // CHECK-SAME: // CHECK-SAME: (construct into local variable) // CHECK-SAME: // CHECK-SAME: S s = S(); // CHECK-SAME: &s // CHECK-SAME: S s = S(); }