summaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_ns_inherit.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/template_ns_inherit.i')
-rw-r--r--Examples/test-suite/template_ns_inherit.i30
1 files changed, 30 insertions, 0 deletions
diff --git a/Examples/test-suite/template_ns_inherit.i b/Examples/test-suite/template_ns_inherit.i
new file mode 100644
index 0000000..fb33654
--- /dev/null
+++ b/Examples/test-suite/template_ns_inherit.i
@@ -0,0 +1,30 @@
+// Submitted by Marcelo Matus
+%module template_ns_inherit
+
+%inline %{
+ namespace hello {
+ typedef double Double;
+ }
+ namespace hello
+ {
+ template <class ArgType, class ResType>
+ class VUnaryFunction
+ {};
+
+ template <class ArgType, class ResType>
+ class UnaryFunction : public VUnaryFunction<ArgType, ResType>
+ {};
+ }
+
+%}
+
+namespace hello
+{
+ %template(VUnaryFunction_id) VUnaryFunction<int, Double>;
+ %template(UnaryFunction_id) UnaryFunction<int, Double>;
+}
+
+
+
+
+