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

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 8 00:01:04 PDT 2023


tbaeder added inline comments.


================
Comment at: clang/test/AST/Interp/records.cpp:315
+      auto T = Test(Arr, Pos);
+      // End of scope, should destroy Test.
+    }
----------------
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.


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

https://reviews.llvm.org/D147534



More information about the cfe-commits mailing list