Skip to content

Commit

Permalink
try to disable self-move warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Vighnesh-V committed Oct 11, 2024
1 parent 912798e commit afa4fa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/SharedCodeAllocator.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,12 @@ TEST_CASE("NativeModuleRefRefcounting")

// NativeModuleRef self move assignment:
{
#pragma warning(push, 0)
NativeModuleRef modRef1{modRefA};
modRef1 = std::move(modRef1);
REQUIRE(modRef1.get() == modRefA.get());
REQUIRE(modRefA->getRefcount() == 2);
#pragma warning(pop)
}

REQUIRE(modRefA->getRefcount() == 1);
Expand Down

0 comments on commit afa4fa6

Please sign in to comment.