================ @@ -2313,6 +2313,42 @@ TEST(TransferTest, AssignmentOperatorWithInitAndInheritance) { ASTContext &ASTCtx) {}); } +TEST(TransferTest, CXXOperatorCallExprEqualReturnsVoid) { + // This is a crash repro. + std::string Code = R"( + struct B { + void operator=(B&& other); + }; + void target() { + B b; + b = B(); + // [[p]] + } + )"; + runDataflow( + Code, + [](const llvm::StringMap<DataflowAnalysisState<NoopLattice>> &Results, + ASTContext &ASTCtx) {}); +} + +TEST(TransferTest, CXXOperatorCallExprEqualReturnsPRValue) { + // This is a crash repro. + std::string Code = R"( + struct B { ---------------- martinboehme wrote:
Rename to `struct S`. https://github.com/llvm/llvm-project/pull/80991 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits