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 334f144 commit 9134962Copy full SHA for 9134962
libcxx/test/libcxx/containers/views/views.span/nodiscard.verify.cpp
@@ -20,8 +20,7 @@
20
21
void test() {
22
{ // Test with a static extent
23
- std::array arr{94, 92};
24
- std::span sp{arr};
+ std::span<int, 2> sp;
25
26
sp.first<1>(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
27
sp.last<1>(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
0 commit comments