add test case for bug #1071279
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6906 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9689cebfe8
commit
2fc994e774
2 changed files with 13 additions and 1 deletions
|
|
@ -33,6 +33,14 @@ public:
|
|||
virtual double perimeter(void);
|
||||
};
|
||||
|
||||
typedef Square TSquare;
|
||||
class CFoo
|
||||
{
|
||||
public:
|
||||
static Square MakeSquare(void) {return Square(4.0);};
|
||||
static TSquare MakeTSquare(void) {return Square(4.0);};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -52,5 +52,9 @@ $c->DESTROY();
|
|||
$s->DESTROY();
|
||||
|
||||
print $example::Shape::nshapes," shapes remain\n";
|
||||
print "Goodbye\n";
|
||||
|
||||
$square = example::CFoo::MakeSquare();
|
||||
$tsquare = example::CFoo::MakeTSquare();
|
||||
print "Areas ", $square->area(), " ", $tsquare->area(),"\n";
|
||||
|
||||
print "Goodbye\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue