new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4343 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c775a83888
commit
df9d00e60d
5 changed files with 70 additions and 0 deletions
23
Examples/test-suite/template_extend1.i
Normal file
23
Examples/test-suite/template_extend1.i
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
// One of Luigi's evil tests
|
||||
|
||||
%module template_extend1
|
||||
|
||||
%{
|
||||
namespace Quux {
|
||||
template <class T> class Baz {};
|
||||
}
|
||||
%}
|
||||
|
||||
namespace Quux {
|
||||
template <class T> class Baz {};
|
||||
|
||||
%template (lBaz) Baz<long>;
|
||||
%extend Baz<long> {
|
||||
char *foo(void) { return (char *) "lBaz::foo"; }
|
||||
}
|
||||
|
||||
%template (dBaz) Baz<double>;
|
||||
%extend Baz<double> {
|
||||
char *foo(void) { return (char *) "dBaz::foo"; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue