[clang] [analyzer] Do not destruct fields of unions (PR #122330)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 02:57:11 PST 2025


================
@@ -377,3 +377,26 @@ void directUnknownSymbol() {
 }
 
 }
+
+void testUnionDtor() {
----------------
Xazax-hun wrote:

I think this is a wonderful test but I would not expect to find it in dtor-array as this has nothing to do with arrays. Would it be possible to move it to a new file? Also to add a same test with a union that does not declare a dtor?

https://github.com/llvm/llvm-project/pull/122330


More information about the cfe-commits mailing list