================
@@ -162,4 +167,11 @@ namespace SynthesizedAssignment {
clang_analyzer_eval(u.a[2].a == 43); // expected-warning{{TRUE}}
// expected-note@-1{{TRUE}}
}
+
+ void testImplicitAssign() {
+ C c1, c2;
+ c1 = c2; // expected-warning@114{{Value assigned to field 'x' in implicit
assignment operator is uninitialized}}
----------------
balazske wrote:
The new test is based on the existing tests in the file, if the change is made
to use of "anchor" it must be made in the whole file which affects multiple not
related (to the functional change) tests.
https://github.com/llvm/llvm-project/pull/208173
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits