aboutsummaryrefslogtreecommitdiffstats
path: root/test/swftests
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-17 04:36:23 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-17 04:36:23 +0100
commit8d05f2c16a79e4127963d28bb41587105680e72c (patch)
tree99f8a85c7519aea575c351a71981e718967f0402 /test/swftests
parenta4bb83956cf3aa4f569c30b4d144b4fb327c7b56 (diff)
downloadyoutube-dl-8d05f2c16a79e4127963d28bb41587105680e72c.zip
youtube-dl-8d05f2c16a79e4127963d28bb41587105680e72c.tar.gz
youtube-dl-8d05f2c16a79e4127963d28bb41587105680e72c.tar.bz2
[swfinterp] Add support for void methods
Diffstat (limited to 'test/swftests')
-rw-r--r--test/swftests/PrivateVoidCall.as22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/swftests/PrivateVoidCall.as b/test/swftests/PrivateVoidCall.as
new file mode 100644
index 0000000..2cc0167
--- /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();
+ }
+}