From 27d268e61c945850ffc260e0de8e90bbb3c91cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johel=20Ernesto=20Guerrero=20Pe=C3=B1a?= Date: Mon, 30 Sep 2024 23:38:19 -0400 Subject: [PATCH] test: avoid unnamed parameter in function type template argument --- regression-tests/pure2-last-use.cpp2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regression-tests/pure2-last-use.cpp2 b/regression-tests/pure2-last-use.cpp2 index a0b73604c..1ee55b260 100644 --- a/regression-tests/pure2-last-use.cpp2 +++ b/regression-tests/pure2-last-use.cpp2 @@ -270,9 +270,9 @@ issue_857_6: @struct type = { issue_857_4: @struct type = { f: std::add_pointer_t<()->int>; - g: std::add_pointer_t<(_:int)->int>; + g: std::add_pointer_t<(x:int)->int>; mf: std::move_only_function<()->int>; - mg: std::move_only_function<(_:int)->int>; + mg: std::move_only_function<(x:int)->int>; // h0: (move this) = _ = mf(); // h1: (move this) = _ = this.mf(); // h2: (move this, that) = _ = that.mf(); @@ -770,7 +770,7 @@ issue_884: () = { issue_888_0: (copy r: std::string, copy size: int) = { _ = r.size(); } -issue_888_1: (copy _: std::string, copy size: std::move_only_function<(_:int)->int>) = { +issue_888_1: (copy _: std::string, copy size: std::move_only_function<(x:int)->int>) = { _ = 0.size(); } @@ -787,7 +787,7 @@ issue_962: (s: ::std::string) = { draw: () = { pos := 0; - vertex: std::move_only_function<(_:int)->int> = (); + vertex: std::move_only_function<(x:int)->int> = (); _ = (pos).vertex(); }