Skip to content

Commit 27d268e

Browse files
committed
test: avoid unnamed parameter in function type template argument
1 parent d3635e6 commit 27d268e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

regression-tests/pure2-last-use.cpp2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@ issue_857_6: @struct type = {
270270

271271
issue_857_4: @struct type = {
272272
f: std::add_pointer_t<()->int>;
273-
g: std::add_pointer_t<(_:int)->int>;
273+
g: std::add_pointer_t<(x:int)->int>;
274274
mf: std::move_only_function<()->int>;
275-
mg: std::move_only_function<(_:int)->int>;
275+
mg: std::move_only_function<(x:int)->int>;
276276
// h0: (move this) = _ = mf();
277277
// h1: (move this) = _ = this.mf();
278278
// h2: (move this, that) = _ = that.mf();
@@ -770,7 +770,7 @@ issue_884: () = {
770770
issue_888_0: (copy r: std::string, copy size: int) = {
771771
_ = r.size();
772772
}
773-
issue_888_1: (copy _: std::string, copy size: std::move_only_function<(_:int)->int>) = {
773+
issue_888_1: (copy _: std::string, copy size: std::move_only_function<(x:int)->int>) = {
774774
_ = 0.size();
775775
}
776776

@@ -787,7 +787,7 @@ issue_962: (s: ::std::string) = {
787787

788788
draw: () = {
789789
pos := 0;
790-
vertex: std::move_only_function<(_:int)->int> = ();
790+
vertex: std::move_only_function<(x:int)->int> = ();
791791
_ = (pos).vertex();
792792
}
793793

0 commit comments

Comments
 (0)