aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-05-29 17:31:25 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-05-29 17:31:25 -0700
commit2b6a3dbadf24de1fc21ee8776ad1271c4045955d (patch)
tree1133b71ab8943c0f6dfdcff15e5c0bc34a493b27 /tests
parenta6e9973beec114dbf68f0ba481893b3b6650c1fa (diff)
fix bindings generator bug with overloaded functions whose parameters differ in type between class and non-class
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 8e2e7b28..a765d357 100755
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -5493,6 +5493,7 @@ def process(filename):
int value;
public:
Parent(int val);
+ Parent(Parent *p, Parent *q); // overload constructor
int getVal() { return value; }; // inline should work just fine here, unlike Way 1 before
void mulVal(int mul);
};
@@ -5530,6 +5531,7 @@ def process(filename):
#include "header.h"
Parent::Parent(int val) : value(val) { printf("Parent:%d\\n", val); }
+ Parent::Parent(Parent *p, Parent *q) : value(p->value + q->value) { printf("Parent:%d\\n", value); }
void Parent::mulVal(int mul) { value *= mul; }
#include "bindingtest.cpp"