swig/Examples/test-suite/extend_template.i
William S Fulton faf8fee877 minor comment added
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-03-04 18:27:23 +00:00

26 lines
364 B
OpenEdge ABL

%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>;
}