diff options
Diffstat (limited to 'Examples/test-suite/python/director_pass_by_value_runme.py')
-rw-r--r-- | Examples/test-suite/python/director_pass_by_value_runme.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/test-suite/python/director_pass_by_value_runme.py b/Examples/test-suite/python/director_pass_by_value_runme.py index 7744db962..9dbd64ad6 100644 --- a/Examples/test-suite/python/director_pass_by_value_runme.py +++ b/Examples/test-suite/python/director_pass_by_value_runme.py @@ -8,6 +8,8 @@ class director_pass_by_value_Derived(director_pass_by_value.DirectorPassByValueA # bug was the passByVal global object was destroyed after the call to virtualMethod had finished. director_pass_by_value.Caller().call_virtualMethod(director_pass_by_value_Derived()) +if director_pass_by_value.has_cplusplus11(): + director_pass_by_value.Counter.check_counts(1, 0, 0, 1, 0, 1) # check move constructor called and just one destructor ret = passByVal.getVal(); if ret != 0x12345678: raise RuntimeError("Bad return value, got " + hex(ret)) |