aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-20 12:47:15 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-20 12:47:15 +0200
commit01b4b745749bb92b4a56b4201d699740cbf450ab (patch)
treebf5f4e102d6a457ba5c16e79df69aeed3641f009 /test
parent70f767dc65189df0118d319d62385e54bd9bb03e (diff)
[swfinterp] Add support for calls to instance methods
Diffstat (limited to 'test')
-rw-r--r--test/swftests/ClassCall.as17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/swftests/ClassCall.as b/test/swftests/ClassCall.as
new file mode 100644
index 000000000..aef58daf3
--- /dev/null
+++ b/test/swftests/ClassCall.as
@@ -0,0 +1,17 @@
+// input: []
+// output: 121
+
+package {
+public class ClassCall {
+ public static function main():int{
+ var f:OtherClass = new OtherClass();
+ return f.func(100,20);
+ }
+}
+}
+
+class OtherClass {
+ public function func(x: int, y: int):int {
+ return x+y+1;
+ }
+}