diff options
Diffstat (limited to 'Examples/test-suite/template_static.i')
-rw-r--r-- | Examples/test-suite/template_static.i | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Examples/test-suite/template_static.i b/Examples/test-suite/template_static.i new file mode 100644 index 000000000..087cb3db2 --- /dev/null +++ b/Examples/test-suite/template_static.i @@ -0,0 +1,16 @@ +%module template_static + +%warnfilter(801) foo<int>; /* Ruby, wrong class name */ +%warnfilter(801) foo<double>; /* Ruby, wrong class name */ + +%inline %{ +template<class T> class foo { +public: + static int test; +}; +template<class T> int foo<T>::test = 0; +%} + +%template(foo_i) foo<int>; +%template(foo_d) foo<double>; + |