Added broken test for template + specialization + enum

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4171 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2002-12-10 23:59:33 +00:00
commit 2925b47883
2 changed files with 61 additions and 0 deletions

View file

@ -47,6 +47,7 @@ CPP_TEST_BROKEN = \
namespace_nested \
template_default_arg \
template_specialization_defarg \
template_specialization_enum \
using_namespace
CPP_TEST_CASES += $(CPP_TEST_BROKEN)

View file

@ -0,0 +1,60 @@
%module template_specialization_enum
%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 hello()
{
return hello;
}
protected:
C()
{
}
};
template <class A>
struct C<hi , A> : Base<hi, A>
{
int hi()
{
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>;