xref: /llvm-project/clang/test/Analysis/exploded-graph-rewriter/initializers_under_construction.cpp (revision 5ce7050f701c6907cc2522fc43d39a8cbcc119d2)
1 // FIXME: Figure out how to use %clang_analyze_cc1 with our lit.local.cfg.
2 // RUN: %clang_cc1 -analyze -triple x86_64-unknown-linux-gnu \
3 // RUN:                     -analyzer-checker=core \
4 // RUN:                     -analyzer-dump-egraph=%t.dot %s
5 // RUN: %exploded_graph_rewriter %t.dot | FileCheck %s
6 
7 struct A {
AA8   A() {}
9 };
10 
11 struct B {
12   A a;
BB13   B() : a() {}
14 };
15 
test()16 void test() {
17   // CHECK: (construct into member variable)
18   // CHECK-SAME: <td align="left">a</td>
19   // CHECK-SAME: <td align="left">&amp;b.a</td>
20   B b;
21 }
22