aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_arg_scope.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/template_arg_scope.i')
-rw-r--r--Examples/test-suite/template_arg_scope.i16
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/test-suite/template_arg_scope.i b/Examples/test-suite/template_arg_scope.i
new file mode 100644
index 000000000..36b593c3d
--- /dev/null
+++ b/Examples/test-suite/template_arg_scope.i
@@ -0,0 +1,16 @@
+%module template_arg_scope
+%inline %{
+
+template<class T> class Foo {
+};
+
+class Bar {
+public:
+ Bar();
+ void spam(Foo<Bar> *x);
+};
+Bar::Bar() {}
+void Bar::spam(Foo<Bar> *x) {}
+
+%}
+