Skip to content

Commit 35d6208

Browse files
Update libcxx/test/libcxx/language.support/nodiscard.verify.cpp
Co-authored-by: A. Jiang <[email protected]>
1 parent 32f3d2e commit 35d6208

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libcxx/test/libcxx/language.support/nodiscard.verify.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,11 @@ void test() {
8181
}
8282
#endif
8383

84-
#if TEST_STD_VER >= 20
8584
{ // <initializer_list>
8685
std::initializer_list<int> il{94, 82, 49};
8786

8887
il.size(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
8988
il.begin(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
9089
il.end(); // expected-warning {{ignoring return value of function declared with 'nodiscard' attribute}}
9190
}
92-
#endif
9391
}

0 commit comments

Comments
 (0)