================ @@ -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 ---------------- Sirraide wrote:
> I realize elsewhere does this... but please use `-verify=cpp20,expected` and > `-verify=cpp17,expected` Ah, thanks, I didn’t know about those. https://github.com/llvm/llvm-project/pull/75883 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits