diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-07-23 23:43:01 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-07-23 23:43:01 -0700 |
commit | 78241b0617a8bbe62023ba578c412238ce802b80 (patch) | |
tree | 7edd7c8d26516db767a3373130e655cc62ccb4cc /tests/runner.py | |
parent | cbd2894946f87264bfc604e62eb05f7ebe1d1a92 (diff) |
support for binding static functions
Diffstat (limited to 'tests/runner.py')
-rw-r--r-- | tests/runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 19790cda..9cea1460 100644 --- a/tests/runner.py +++ b/tests/runner.py @@ -2615,6 +2615,7 @@ if 'benchmark' not in sys.argv: public: Child2() : Parent(9) { printf("Child2:%d\\n", value); }; int getValCube() { return value*value*value; } + static void printStatic() { printf("*static*\\n"); } private: void doSomethingSecret() { printf("security breached!\\n"); }; // we should not be able to do this }; @@ -2688,6 +2689,8 @@ if 'benchmark' not in sys.argv: } catch(e) {} print(succeeded); + Child2.prototype.printStatic(); // static calls go through the prototype + print('*ok*'); ''' @@ -2725,6 +2728,7 @@ Child2:9 0 0 1 +*static* *ok* ''', post_build=post2) |