diff options
Diffstat (limited to 'test/swftests/LocalVars.as')
-rw-r--r-- | test/swftests/LocalVars.as | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/swftests/LocalVars.as b/test/swftests/LocalVars.as new file mode 100644 index 000000000..b2911a9f3 --- /dev/null +++ b/test/swftests/LocalVars.as @@ -0,0 +1,13 @@ +// input: [1, 2] +// output: 3 + +package { +public class LocalVars { + public static function main(a:int, b:int):int{ + var c:int = a + b + b; + var d:int = c - b; + var e:int = d; + return e; + } +} +} |