[PATCH] D147534: [clang][Interp] Make sure we have a variable scope for initializers

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 8 05:31:57 PDT 2023


aaron.ballman added inline comments.


================
Comment at: clang/test/AST/Interp/records.cpp:315
+      auto T = Test(Arr, Pos);
+      // End of scope, should destroy Test.
+    }
----------------
tbaeder wrote:
> aaron.ballman wrote:
> > Would it make sense to give `Test` a constexpr destructor so that we can validate it's being called? e.g. https://godbolt.org/z/fhE7xzE4e
> That just tests regular destructors, doesn't it? That's already covered by other tests.
Yeah, that's fair I suppose. :-)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147534/new/

https://reviews.llvm.org/D147534



More information about the cfe-commits mailing list