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 efc849d commit a443582Copy full SHA for a443582
libcxx/test/libcxx/containers/sequences/forwardlist/assert.pass.cpp
@@ -33,8 +33,10 @@ int main(int, char**) {
33
const auto& const_c = c;
34
c.push_front(1);
35
36
- (void)c.front(); // Check that there's no assertion on valid access.
37
- (void)const_c.front(); // Check that there's no assertion on valid access.
+ // Check that there's no assertion on valid access.
+ (void)c.front();
38
+ (void)const_c.front();
39
+
40
c.pop_front();
41
TEST_LIBCPP_ASSERT_FAILURE(c.pop_front(), "forward_list::pop_front called on an empty list");
42
TEST_LIBCPP_ASSERT_FAILURE(c.front(), "forward_list::front called on an empty list");
0 commit comments