diff options
| -rw-r--r-- | sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py | 2 | ||||
| -rw-r--r-- | sources/shiboken6/tests/smartbinding/typesystem_smart.xml | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py b/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py index c87a6f3e2..ddaab43f5 100644 --- a/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py +++ b/sources/shiboken6/tests/smartbinding/std_shared_ptr_test.py @@ -49,6 +49,8 @@ class StdSharedPtrTests(unittest.TestCase): self.assertFalse(np) p = StdSharedPtrTestBench.createInt() StdSharedPtrTestBench.printInt(p) + ip = std.StdIntPtr(42) + StdSharedPtrTestBench.printInt(ip) def testString(self): np = StdSharedPtrTestBench.createNullString() diff --git a/sources/shiboken6/tests/smartbinding/typesystem_smart.xml b/sources/shiboken6/tests/smartbinding/typesystem_smart.xml index 8831629f8..e4a1ef8b7 100644 --- a/sources/shiboken6/tests/smartbinding/typesystem_smart.xml +++ b/sources/shiboken6/tests/smartbinding/typesystem_smart.xml @@ -50,7 +50,7 @@ value-check-method="operator bool" ref-count-method="use_count" reset-method="reset" - instantiations="Integer,int,std::string"> + instantiations="Integer,int=StdIntPtr,std::string"> <include file-name="memory" location="global"/> </smart-pointer-type> |
