Searched refs:ExampleMandA (Results 1 - 2 of 2) sorted by relevance

/gem5/ext/pybind11/tests/
H A Dtest_methods_and_attributes.cpp19 class ExampleMandA { class
21 ExampleMandA() { print_default_created(this); } function in class:ExampleMandA
22 ExampleMandA(int value) : value(value) { print_created(this, value); } function in class:ExampleMandA
23 ExampleMandA(const ExampleMandA &e) : value(e.value) { print_copy_created(this); } function in class:ExampleMandA
24 ExampleMandA(ExampleMandA &&e) : value(e.value) { print_move_created(this); } function in class:ExampleMandA
25 ~ExampleMandA() { print_destroyed(this); }
28 return "ExampleMandA[value=" + std::to_string(value) + "]";
31 void operator=(const ExampleMandA
[all...]
H A Dtest_methods_and_attributes.py7 instance1 = m.ExampleMandA()
8 instance2 = m.ExampleMandA(32)
21 assert str(instance1) == "ExampleMandA[value=320]"
22 assert str(instance2) == "ExampleMandA[value=32]"
23 assert str(instance1.self1()) == "ExampleMandA[value=320]"
24 assert str(instance1.self2()) == "ExampleMandA[value=320]"
25 assert str(instance1.self3()) == "ExampleMandA[value=320]"
26 assert str(instance1.self4()) == "ExampleMandA[value=320]"
27 assert str(instance1.self5()) == "ExampleMandA[value=320]"
53 assert str(instance1) == "ExampleMandA[valu
[all...]

Completed in 6 milliseconds