2021-07-06 21:31:18 +00:00
|
|
|
assert m.atyp_valu().get_mtxt() == "Valu"
|
|
|
|
atyp_valu rtrn_valu() { atyp_valu obj{"Valu"}; return obj; }
|
2021-09-09 02:42:56 +00:00
|
|
|
explicit indestructible_int(int v) : valu{v} {}
|
|
|
|
explicit movable_int(int v) : valu{v} {}
|
2021-07-06 21:31:18 +00:00
|
|
|
int valu;
|
|
|
|
(m.pass_valu, "Valu", "pass_valu:Valu(_MvCtor)*_CpCtor"),
|
|
|
|
other.valu = 91;
|
|
|
|
REQUIRE(hld.as_raw_ptr_unowned<zombie>()->valu == 19);
|
|
|
|
REQUIRE(orig.valu == 91);
|
|
|
|
REQUIRE(othr.valu == 19);
|
|
|
|
valu = other.valu;
|
|
|
|
with pytest.raises(ValueError) as excinfo:
|
|
|
|
with pytest.raises(ValueError) as exc_info:
|
2022-05-17 23:35:43 +00:00
|
|
|
// valu(e), ref(erence), ptr or p (pointer), r = rvalue, m = mutable, c = const,
|