new tests

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4637 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-03-27 22:54:37 +00:00
commit 4bc26e78ca
4 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,28 @@
%module extend_placement
// Tests placement of %extend directives
// Before the class
%extend Foo {
Foo() { return new Foo(); }
~Foo() { delete self;}
int spam(int x) { return x; }
};
%inline %{
class Foo { };
%}
// After the class
%inline %{
class Bar { };
%}
%extend Bar {
Bar() { return new Bar(); }
~Bar() { delete self;}
int spam(int x) { return x; }
};