Skip to content

Commit 5c351d7

Browse files
committed
[Clang][P1061] Fix error messages in tests
1 parent 6d49a3d commit 5c351d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/Parser/cxx2c-binding-pack.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ template <unsigned N>
44
void decompose_array() {
55
int arr[4] = {1, 2, 3, 5};
66
auto [x, ... // #1
7-
rest, ...more_rest] = arr; // expected-error{{multiple ellipses in structured binding declaration}}
8-
// expected-note@#1{{previous ellipsis specified here}}
7+
rest, ...more_rest] = arr; // expected-error{{multiple packs in structured binding declaration}}
8+
// expected-note@#1{{previous binding pack specified here}}
99
//
1010
auto [y...] = arr; // expected-error{{'...' must immediately precede declared identifier}}
1111
}

0 commit comments

Comments
 (0)