summaryrefslogtreecommitdiff
path: root/Examples/test-suite/template_ns2.i
blob: f35d32654e3b5e67c36354b4f37531ff347542c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Tests compilation of uninstantiated templates in a namespace

%module template_ns2

%inline %{

namespace foo {
   template<class T> class bar {
   };
   bar<int> *test1(bar<int> *x) { return x; }
   typedef int Integer;

   bar<Integer *> *test2(bar<Integer *> *x) { return x; }
}
%}