1 // RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -analyzer-config c++-inlining=constructors -verify %s
5 void clang_analyzer_dump(T
&);
15 void test_copy_return() {
17 aggr
const& cr1
= aggr(s1
);
18 clang_analyzer_dump(cr1
); // expected-warning-re {{&lifetime_extended_object{aggr, cr1, S{{[0-9]+}}} }}
21 empty
const& cr2
= empty
{s2
};
22 clang_analyzer_dump(cr2
); // expected-warning-re {{&lifetime_extended_object{empty, cr2, S{{[0-9]+}}} }}
25 void test_assign_return() {
28 clang_analyzer_dump(d1
= s1
); // expected-warning {{&d1 }}
32 clang_analyzer_dump(d2
= s2
); // expected-warning {{&d2 }} was Unknown