From cd9ad1d7e8970c4e5d468d873ede88d26fd99bd2 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 17 Nov 2014 07:14:02 +0100 Subject: [swfinterp] Basic support for constants (only ints for now) --- test/swftests/ConstantInt.as | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/swftests/ConstantInt.as (limited to 'test/swftests/ConstantInt.as') diff --git a/test/swftests/ConstantInt.as b/test/swftests/ConstantInt.as new file mode 100644 index 000000000..e0bbb6166 --- /dev/null +++ b/test/swftests/ConstantInt.as @@ -0,0 +1,12 @@ +// input: [] +// output: 2 + +package { +public class ConstantInt { + private static const x:int = 2; + + public static function main():int{ + return x; + } +} +} -- cgit v1.2.3