aboutsummaryrefslogtreecommitdiff
path: root/test/swftests/StaticRetrieval.as
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-07-20 00:03:54 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2014-07-20 00:03:54 +0200
commite75c24e88907f329c57cf05d729dbf599349bb50 (patch)
tree9a414da9c75e08fbf948a69ebdd5084994160f77 /test/swftests/StaticRetrieval.as
parent0cb2056304178ae8944e84c5bc72f96102291a12 (diff)
[swfinterp] Extend tests and fix parsing
Diffstat (limited to 'test/swftests/StaticRetrieval.as')
-rw-r--r--test/swftests/StaticRetrieval.as16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/swftests/StaticRetrieval.as b/test/swftests/StaticRetrieval.as
new file mode 100644
index 000000000..c8352d819
--- /dev/null
+++ b/test/swftests/StaticRetrieval.as
@@ -0,0 +1,16 @@
+// input: []
+// output: 1
+
+package {
+public class StaticRetrieval {
+ public static var v:int;
+
+ public static function main():int{
+ if (v) {
+ return 0;
+ } else {
+ return 1;
+ }
+ }
+}
+}