Home
last modified time | relevance | path

Searched refs:NoneTester (Results 1 – 2 of 2) sorted by relevance

/external/python/pybind11/tests/
Dtest_methods_and_attributes.cpp112 class NoneTester { public: int answer = 42; }; class
113 int none1(const NoneTester &obj) { return obj.answer; } in none1()
114 int none2(NoneTester *obj) { return obj ? obj->answer : -1; } in none2()
115 int none3(std::shared_ptr<NoneTester> &obj) { return obj ? obj->answer : -1; } in none3()
116 int none4(std::shared_ptr<NoneTester> *obj) { return obj && *obj ? (*obj)->answer : -1; } in none4()
117 int none5(std::shared_ptr<NoneTester> obj) { return obj ? obj->answer : -1; } in none5()
328 py::class_<NoneTester, std::shared_ptr<NoneTester>>(m, "NoneTester") in TEST_SUBMODULE()
Dtest_methods_and_attributes.py373 a = m.NoneTester()