aboutsummaryrefslogtreecommitdiff
path: root/test/swftests
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-11-17 07:14:02 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-11-17 07:14:02 +0100
commitcd9ad1d7e8970c4e5d468d873ede88d26fd99bd2 (patch)
treea89bd3b232137759c56f8ca68ddd492a35f631d9 /test/swftests
parent162f54eca6b9c0dc2e4fe36bd2905190ba0185fa (diff)
[swfinterp] Basic support for constants (only ints for now)
Diffstat (limited to 'test/swftests')
-rw-r--r--test/swftests/ConstantInt.as12
1 files changed, 12 insertions, 0 deletions
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;
+ }
+}
+}