swig/Examples/test-suite/template_specialization_enum.i
William S Fulton 362473b722 ruby warning suppression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6401 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2004-10-16 20:56:21 +00:00

63 lines
796 B
OpenEdge ABL

%module template_specialization_enum
%warnfilter(801) Hello; /* Ruby, wrong class name */
%warnfilter(801) Hi; /* Ruby, wrong class name */
%inline %{
enum Hello
{
hi, hello
};
template <Hello, class A>
struct C
{
};
template <Hello, class BB>
struct Base
{
};
template <class A>
struct C<hello , A> : Base<hello, A>
{
int fhello()
{
return hello;
}
protected:
C()
{
}
};
template <class A>
struct C<hi , A> : Base<hi, A>
{
int fhi()
{
return hi;
}
protected:
C()
{
}
};
%}
%template(Base_dd) Base<hi, int>;
%template(Base_ii) Base<hello, int>;
%template(C_i) C<hi, int>;
%template(C_d) C<hello, int>;