aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/errors/cpp_smartptr_feature.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/errors/cpp_smartptr_feature.i')
-rw-r--r--Examples/test-suite/errors/cpp_smartptr_feature.i14
1 files changed, 14 insertions, 0 deletions
diff --git a/Examples/test-suite/errors/cpp_smartptr_feature.i b/Examples/test-suite/errors/cpp_smartptr_feature.i
new file mode 100644
index 000000000..4a0d510cd
--- /dev/null
+++ b/Examples/test-suite/errors/cpp_smartptr_feature.i
@@ -0,0 +1,14 @@
+%module xxx
+
+%feature("smartptr", noblock=1) AA { std::shared_ptr< AA > }
+%feature("smartptr", noblock=1) DD { std::shared_ptr< }
+
+
+struct AA {};
+struct BB : AA {};
+struct CC : AA {};
+struct DD : AA {};
+
+%feature("smartptr", noblock=1) YY { std::shared_ptr< YY > }
+struct XX {};
+struct YY : XX {};