Skip to content

Commit abae524

Browse files
committed
fix unused var
1 parent 5aa447f commit abae524

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/beman/inplace_vector/inplace_vector.test.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,16 @@ void test_exceptions() {
6868
{
6969
try {
7070
vec too_small{};
71-
auto res = too_small.at(5);
71+
too_small.at(5);
72+
assert(false);
7273
} catch (const std::out_of_range &) {
7374
} catch (...) {
7475
assert(false);
7576
}
7677
try {
7778
const vec too_small{};
78-
auto res = too_small.at(5);
79+
too_small.at(5);
80+
assert(false);
7981
} catch (const std::out_of_range &) {
8082
} catch (...) {
8183
assert(false);

0 commit comments

Comments
 (0)