diff options
Diffstat (limited to 'Examples/test-suite/python/cpp14_auto_return_type_runme.py')
-rw-r--r-- | Examples/test-suite/python/cpp14_auto_return_type_runme.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Examples/test-suite/python/cpp14_auto_return_type_runme.py b/Examples/test-suite/python/cpp14_auto_return_type_runme.py new file mode 100644 index 000000000..5efa0e512 --- /dev/null +++ b/Examples/test-suite/python/cpp14_auto_return_type_runme.py @@ -0,0 +1,10 @@ +from cpp14_auto_return_type import * + +sc = va_static_cast() +if sc != 42: + raise RuntimeError("va_static_cast fail {}".format(sc)) + +x = X() +a = x.a() +if a != "a string": + raise RuntimeError("x.a fail {}".format(a)) |