diff options
author | Philipp Hagemeister <[email protected]> | 2014-11-17 07:14:02 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-11-17 07:14:02 +0100 |
commit | cd9ad1d7e8970c4e5d468d873ede88d26fd99bd2 (patch) | |
tree | a89bd3b232137759c56f8ca68ddd492a35f631d9 /test/swftests | |
parent | 162f54eca6b9c0dc2e4fe36bd2905190ba0185fa (diff) | |
download | youtube-dl-cd9ad1d7e8970c4e5d468d873ede88d26fd99bd2.tar.gz youtube-dl-cd9ad1d7e8970c4e5d468d873ede88d26fd99bd2.zip |
[swfinterp] Basic support for constants (only ints for now)
Diffstat (limited to 'test/swftests')
-rw-r--r-- | test/swftests/ConstantInt.as | 12 |
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; + } +} +} |