[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 4 08:52:05 PST 2024


================
@@ -163,6 +170,40 @@ void attribute_const() {
   std::as_const(n); // expected-warning {{ignoring return value}}
 }
 
+struct D {
+  void* operator new(__SIZE_TYPE__, D&&(*)(D&));
+  void* operator new(__SIZE_TYPE__, D*(*)(D&));
+  void* operator new(__SIZE_TYPE__, const D&(*)(D&));
+};
+
+#if __cplusplus <= 201703L
----------------
Endilll wrote:

Here's a good example of every kind of `verify` prefixes I've been using in C++ DR tests:
https://github.com/llvm/llvm-project/blob/569ec185f5dc4a9e4a239948191977ecc2b2b475/clang/test/CXX/drs/dr6xx.cpp#L1-L6

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


More information about the cfe-commits mailing list