summaryrefslogtreecommitdiffhomepage
path: root/test/swftests
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-07-20 00:25:58 +0200
committerPhilipp Hagemeister <[email protected]>2014-07-20 00:25:58 +0200
commit70f767dc65189df0118d319d62385e54bd9bb03e (patch)
tree48391d1381cf11a81e7537c22ca05faacca02b43 /test/swftests
parente75c24e88907f329c57cf05d729dbf599349bb50 (diff)
downloadyoutube-dl-70f767dc65189df0118d319d62385e54bd9bb03e.tar.gz
youtube-dl-70f767dc65189df0118d319d62385e54bd9bb03e.zip
[swfinterp] Add support for multiple classes
Diffstat (limited to 'test/swftests')
-rw-r--r--test/swftests/ClassConstruction.as15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/swftests/ClassConstruction.as b/test/swftests/ClassConstruction.as
new file mode 100644
index 000000000..436479f8f
--- /dev/null
+++ b/test/swftests/ClassConstruction.as
@@ -0,0 +1,15 @@
+// input: []
+// output: 0
+
+package {
+public class ClassConstruction {
+ public static function main():int{
+ var f:Foo = new Foo();
+ return 0;
+ }
+}
+}
+
+class Foo {
+
+}