add template + typedef + fnc case reported by Carlos Pita. Broken in 1.3.24, but works in CVS.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7194 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-05-16 01:18:47 +00:00
commit bcc417e5f6
2 changed files with 15 additions and 0 deletions

View file

@ -267,6 +267,7 @@ CPP_TEST_CASES += \
template_typedef_cplx3 \
template_typedef_cplx4 \
template_typedef_cplx5 \
template_typedef_fnc \
template_typedef_ns \
template_typedef_ptr \
template_virtual \

View file

@ -0,0 +1,14 @@
%module template_typedef_fnc
%include "std_vector.i"
namespace std {
%template(IntVector) vector<int>;
};
%inline
{
typedef void (*RtMidiCallback)(std::vector<int> *message);
void setCallback( RtMidiCallback callback) {
}
}