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:
Marcelo Matus 2004-12-21 08:03:49 +00:00
commit 2fc994e774
2 changed files with 13 additions and 1 deletions

View file

@ -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);};
};

View file

@ -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";