1 // RUN: %clang_analyze_cc1 -analyzer-checker=core.builtin -verify -DCHECK_FOR_CRASH %s
2 // RUN: %clang_analyze_cc1 -analyzer-checker=core -verify -analyzer-output=text %s
5 // expected-no-diagnostics
8 namespace PerformTrivialCopyForUndefs
{
24 #ifdef CHECK_FOR_CRASH
25 // If the value of variable is not defined and checkers that check undefined
26 // values are not enabled, performTrivialCopy should be able to handle the
27 // case with undefined values, too.
30 c1
.b
.a
= c2
->b
.a
; // expected-warning{{1st function call argument is an uninitialized value}}
31 // expected-note@-1{{1st function call argument is an uninitialized value}}