summaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_partial_arg.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/template_partial_arg.i')
-rw-r--r--Examples/test-suite/template_partial_arg.i21
1 files changed, 21 insertions, 0 deletions
diff --git a/Examples/test-suite/template_partial_arg.i b/Examples/test-suite/template_partial_arg.i
new file mode 100644
index 0000000..539f76f
--- /dev/null
+++ b/Examples/test-suite/template_partial_arg.i
@@ -0,0 +1,21 @@
+%module template_partial_arg
+
+%inline %{
+ template <class T> class Foo {
+ public:
+ T bar() { return T(); }
+ T* baz() { return 0; }
+ };
+
+ template <class T> class Foo<T*> {
+ public:
+ T bar() { return T(); }
+ T* baz() { return 0; }
+ };
+
+ class Bar {};
+%}
+
+%template(Foo1) Foo<Bar>;
+%template(Foo2) Foo<Bar*>;
+