Add some chicken test-suite entries for overloaded functions

(which now work correctly) and update the chicken documentation


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7146 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
John Lenz 2005-04-07 00:39:28 +00:00
commit c5f25b9168
10 changed files with 348 additions and 14 deletions

View file

@ -11,11 +11,16 @@ struct Foo {
class Bar {
public:
Bar(int i = 0) {}
Bar(int i = 0) { num = i; }
static int foo(int a=0, int b=0) {return 0;}
int num;
};
char *foo() {
return (char *) "foo:";
}
char *foo(int) {
return (char*) "foo:int";
}
@ -37,6 +42,12 @@ char *foo(Bar *) {
char *foo(void *) {
return (char *) "foo:void *";
}
char *foo(Foo *, int) {
return (char *) "foo:Foo *,int";
}
char *foo(double, Bar *) {
return (char *) "foo:double,Bar *";
}
char *blah(double) {
return (char *) "blah:double";