diff options
author | Joseph C Wang <joequant@gmail.com> | 2016-11-12 00:23:41 +0800 |
---|---|---|
committer | Joseph C Wang <joequant@gmail.com> | 2016-11-12 00:23:41 +0800 |
commit | bff182d556f5276ac6d70cfeed2101e11550967c (patch) | |
tree | b6801bd011a74f68e0cf5ce7fb634c2a5e05fbad /Examples/test-suite | |
parent | 6310cdb28a631d8ea17751d532798fc8d4f94944 (diff) | |
download | swig-bff182d556f5276ac6d70cfeed2101e11550967c.tar.gz |
fix #697 - miscounting comma in member lists
fix method for counting comma in member list
Diffstat (limited to 'Examples/test-suite')
-rw-r--r-- | Examples/test-suite/r/Makefile.in | 3 | ||||
-rw-r--r-- | Examples/test-suite/r_overload_comma.i | 14 |
2 files changed, 16 insertions, 1 deletions
diff --git a/Examples/test-suite/r/Makefile.in b/Examples/test-suite/r/Makefile.in index bc12ba671..d75d4c042 100644 --- a/Examples/test-suite/r/Makefile.in +++ b/Examples/test-suite/r/Makefile.in @@ -19,7 +19,8 @@ C_TEST_CASES += \ CPP_TEST_CASES += \ r_double_delete \ r_overload_array \ - r_sexp + r_sexp \ + r_overload_comma include $(srcdir)/../common.mk diff --git a/Examples/test-suite/r_overload_comma.i b/Examples/test-suite/r_overload_comma.i new file mode 100644 index 000000000..020adb387 --- /dev/null +++ b/Examples/test-suite/r_overload_comma.i @@ -0,0 +1,14 @@ +%module r_overload_comma + +%inline %{ +class r_overload_comma +{ + public: + int getMember1()const {return _member1;} + void setMember1ThatEndsWithWord_get(int arg) { _member1=arg; } + void setMember1ThatEndsWithWord_get(char* arg) {_member1=atoi(arg);} + + private: + int _member1; +}; + %} |