summaryrefslogtreecommitdiff
path: root/Examples/test-suite/extend_template.i
blob: 265c87675a6c283fe3c16811f791f8118881bbc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%module extend_template
%module xxx // should be ignored
namespace oss { // this doesn't 
 %extend Foo<0> { 
    int test1(int x) { return x; }
 } 
} 
 
%extend oss::Foo<0> { // this doesn't 
 int test2(int x) { return x; }
};

 
%inline %{ 
 namespace oss 
 { 
   template <int> 
   struct Foo { 
   }; 
  } 
%} 
 
namespace oss 
{ 
 %template(Foo_0) Foo<0>; 
}