%module template_static %warnfilter(801) foo; /* Ruby, wrong class name */ %warnfilter(801) foo; /* Ruby, wrong class name */ %inline %{ template class foo { public: static int test; }; template int foo::test = 0; %} %template(foo_i) foo; %template(foo_d) foo;