diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2004-10-20 21:01:47 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2004-10-20 21:01:47 +0000 |
commit | 0f96a1ff12a16d655bac08243b41e1e169a099c5 (patch) | |
tree | a587cf2c95aa80255f48640aebbb84ef3d68a273 /Examples/test-suite/overload_extendc.i | |
parent | 74f9ab820b14dd2d62d612f8197b936820034e00 (diff) | |
download | swig-0f96a1ff12a16d655bac08243b41e1e169a099c5.tar.gz |
default arguments in C code test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6450 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite/overload_extendc.i')
-rw-r--r-- | Examples/test-suite/overload_extendc.i | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Examples/test-suite/overload_extendc.i b/Examples/test-suite/overload_extendc.i index f5304af91..1c1dd00b6 100644 --- a/Examples/test-suite/overload_extendc.i +++ b/Examples/test-suite/overload_extendc.i @@ -13,6 +13,9 @@ typedef struct Foo { int test(char *s) { s = 0; return 2; } int test(double x, double y) { x = 0; y = 0; return 3; } int test(char *s, int int1, int int2) { s = 0; return int1+int2; } + + /* C default arguments */ + int test(Foo* f, int i=10, int j=20) { return i+j; } }; |