summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-10-18 04:44:21 +0200
committerLiam <byteslice@airmail.cc>2023-10-18 04:44:21 +0200
commitc5bdc0054cf60d5924046306d8a01991b70035a5 (patch)
tree098b2266681e6279cc8eb95d6f7029feba8e7037 /src/tests
parentMerge pull request #11774 from liamwhite/refcount-issue (diff)
downloadyuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.tar
yuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.tar.gz
yuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.tar.bz2
yuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.tar.lz
yuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.tar.xz
yuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.tar.zst
yuzu-c5bdc0054cf60d5924046306d8a01991b70035a5.zip
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/common/unique_function.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/common/unique_function.cpp b/src/tests/common/unique_function.cpp
index f7a23e876..42e6ade09 100644
--- a/src/tests/common/unique_function.cpp
+++ b/src/tests/common/unique_function.cpp
@@ -46,8 +46,8 @@ TEST_CASE("UniqueFunction", "[common]") {
Noisy noisy;
REQUIRE(noisy.state == "Default constructed");
- Common::UniqueFunction<void> func = [noisy = std::move(noisy)] {
- REQUIRE(noisy.state == "Move constructed");
+ Common::UniqueFunction<void> func = [noisy_inner = std::move(noisy)] {
+ REQUIRE(noisy_inner.state == "Move constructed");
};
REQUIRE(noisy.state == "Moved away");
func();
@@ -101,7 +101,7 @@ TEST_CASE("UniqueFunction", "[common]") {
};
Foo object{&num_destroyed};
{
- Common::UniqueFunction<void> func = [object = std::move(object)] {};
+ Common::UniqueFunction<void> func = [object_inner = std::move(object)] {};
REQUIRE(num_destroyed == 0);
}
REQUIRE(num_destroyed == 1);