Skip to content

Commit 34ea8ee

Browse files
Zingamphilnik777
andauthored
Update libcxx/test/libcxx/containers/views/views.span/nodiscard.verify.cpp
Co-authored-by: Nikolas Klauser <[email protected]>
1 parent 9134962 commit 34ea8ee

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libcxx/test/libcxx/containers/views/views.span/nodiscard.verify.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ void test() {
4848
std::as_writable_bytes(sp);
4949
}
5050
{ // Test with a dynamic extent
51-
std::vector vec{94, 92};
52-
std::span sp{vec};
51+
std::span<int> sp;
5352

5453
sp.first<1>(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
5554
sp.last<1>(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}

0 commit comments

Comments
 (0)