From 8d05f2c16a79e4127963d28bb41587105680e72c Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 17 Nov 2014 04:36:23 +0100 Subject: [swfinterp] Add support for void methods --- test/swftests/PrivateVoidCall.as | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/swftests/PrivateVoidCall.as (limited to 'test') diff --git a/test/swftests/PrivateVoidCall.as b/test/swftests/PrivateVoidCall.as new file mode 100644 index 000000000..2cc016797 --- /dev/null +++ b/test/swftests/PrivateVoidCall.as @@ -0,0 +1,22 @@ +// input: [] +// output: 9 + +package { +public class PrivateVoidCall { + public static function main():int{ + var f:OtherClass = new OtherClass(); + f.func(); + return 9; + } +} +} + +class OtherClass { + private function pf():void { + ; + } + + public function func():void { + this.pf(); + } +} -- cgit v1.2.3