From 9e3cdf7f72c20ac0eaaabcb77216b63a5bd15d65 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 2 Jul 2024 10:45:33 -0700 Subject: [PATCH] Update .codespell-ignore-lines for tests/pure_cpp/smart_holder_poc_test.cpp --- .codespell-ignore-lines | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.codespell-ignore-lines b/.codespell-ignore-lines index 2a01d63ebb..80ec636929 100644 --- a/.codespell-ignore-lines +++ b/.codespell-ignore-lines @@ -12,6 +12,13 @@ template template class_ &def(const detail::op_ &op, const Extra &...extra) { class_ &def_cast(const detail::op_ &op, const Extra &...extra) { + int valu; + explicit movable_int(int v) : valu{v} {} + movable_int(movable_int &&other) noexcept : valu(other.valu) { other.valu = 91; } + explicit indestructible_int(int v) : valu{v} {} + REQUIRE(hld.as_raw_ptr_unowned()->valu == 19); + REQUIRE(othr.valu == 19); + REQUIRE(orig.valu == 91); @pytest.mark.parametrize("access", ["ro", "rw", "static_ro", "static_rw"]) struct IntStruct { explicit IntStruct(int v) : value(v){};