mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-26 23:22:01 +00:00
14 lines
551 B
Plaintext
14 lines
551 B
Plaintext
|
assert m.atyp_valu().get_mtxt() == "Valu"
|
||
|
atyp_valu rtrn_valu() { atyp_valu obj{"Valu"}; return obj; }
|
||
|
indestructible_int(int v) : valu{v} {}
|
||
|
int valu;
|
||
|
movable_int(int v) : valu{v} {}
|
||
|
(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:
|