Skip to content

Commit 1d98984

Browse files
committed
Copy mistake
1 parent 8198fbe commit 1d98984

File tree

1 file changed

+2
-2
lines changed
  • libcxx/test/std/utilities/optional/optional.iterator

1 file changed

+2
-2
lines changed

libcxx/test/std/utilities/optional/optional.iterator/end.pass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ constexpr bool test() {
2424
constexpr std::optional<T> unengaged2{std::nullopt};
2525

2626
{ // end() is marked noexcept
27-
assert(noexcept(opt.end()));
28-
assert(noexcept(nonconst_opt.end()));
27+
assert(noexcept(unengaged.end()));
28+
assert(noexcept(unengaged2.end()));
2929
}
3030

3131
{ // end() == begin() and end() == end() if the optional is unengaged

0 commit comments

Comments
 (0)