diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2023-10-19 01:30:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-19 01:30:29 +0200 |
commit | 134ecca9b0d3d6ec814c5ad850feaf917b1a347b (patch) | |
tree | 45d6d91b419691b9dbafd678ffe54a10e1ce7149 /src/tests | |
parent | Merge pull request #11795 from Squall-Leonhart/D32FToOther (diff) | |
parent | general: fix build failure on clang 17 (diff) | |
download | yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.tar yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.tar.gz yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.tar.bz2 yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.tar.lz yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.tar.xz yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.tar.zst yuzu-134ecca9b0d3d6ec814c5ad850feaf917b1a347b.zip |
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/common/unique_function.cpp | 6 |
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); |