Skip to content

Commit 1685b76

Browse files
fix test
1 parent 5fdeb86 commit 1685b76

File tree

1 file changed

+5
-2
lines changed
  • libcxx/test/std/ranges/range.adaptors/range.concat/iterator

1 file changed

+5
-2
lines changed

libcxx/test/std/ranges/range.adaptors/range.concat/iterator/ctor.pass.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//===----------------------------------------------------------------------===//
88

99
// REQUIRES: has-unix-headers, std-at-least-c++26
10-
// UNSUPPORTED: no-exceptions
10+
// UNSUPPORTED: libcpp-hardening-mode=none, no-exceptions
1111

1212
#include <ranges>
1313

@@ -74,7 +74,10 @@ struct ThrowOnCopyView : std::ranges::view_base {
7474
constexpr ThrowOnCopyView(ThrowOnCopyView&&) = default;
7575
constexpr ThrowOnCopyView(const ThrowOnCopyView&) { throw 42; };
7676
constexpr ThrowOnCopyView& operator=(ThrowOnCopyView&&) = default;
77-
constexpr ThrowOnCopyView& operator=(const ThrowOnCopyView&) { throw 42; return *this;};
77+
constexpr ThrowOnCopyView& operator=(const ThrowOnCopyView&) {
78+
throw 42;
79+
return *this;
80+
};
7881
constexpr int* begin() const { return ptr_ + start_; }
7982
constexpr int* end() const { return ptr_ + 8; }
8083
};

0 commit comments

Comments
 (0)