Add tests for passing STL containers by pointer

`nullptr` is not expected to work in this case.
This commit is contained in:
Andreas Bergmeier
2017-05-09 15:01:22 +02:00
committed by Dean Moldovan
parent c67033a926
commit 34b7b54f29
2 changed files with 25 additions and 0 deletions

View File

@@ -160,4 +160,6 @@ TEST_SUBMODULE(stl, m) {
};
});
// test_stl_pass_by_pointer
m.def("stl_pass_by_pointer", [](std::vector<int>* v) { return *v; }, "v"_a=nullptr);
}