add new broken case template_typedef_ptr
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5864 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
18592f7491
commit
c975833b27
1 changed files with 28 additions and 0 deletions
28
SWIG/Examples/test-suite/template_typedef_ptr.i
Normal file
28
SWIG/Examples/test-suite/template_typedef_ptr.i
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
%module template_typedef_ptr
|
||||
|
||||
%inline %{
|
||||
struct C{};
|
||||
typedef C* pC;
|
||||
|
||||
template <class A, class B>
|
||||
struct Test
|
||||
{
|
||||
Test (A a, B b)
|
||||
{
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
template <class A, class B>
|
||||
struct Test<A, B*>
|
||||
{
|
||||
Test (A a, B* b)
|
||||
{
|
||||
}
|
||||
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
%template(test_pC) Test<int, pC>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue