We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9134962 commit 34ea8eeCopy full SHA for 34ea8ee
libcxx/test/libcxx/containers/views/views.span/nodiscard.verify.cpp
@@ -48,8 +48,7 @@ void test() {
48
std::as_writable_bytes(sp);
49
}
50
{ // Test with a dynamic extent
51
- std::vector vec{94, 92};
52
- std::span sp{vec};
+ std::span<int> sp;
53
54
sp.first<1>(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
55
sp.last<1>(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
0 commit comments