From e983cf52775e493b7deedbe48d2f50f598c9da4e Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Mon, 17 Nov 2014 04:00:31 +0100 Subject: [swfinterp] Interpret yet more opcodes --- test/swftests/NeOperator.as | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test/swftests/NeOperator.as (limited to 'test/swftests') diff --git a/test/swftests/NeOperator.as b/test/swftests/NeOperator.as new file mode 100644 index 000000000..61dcbc4e9 --- /dev/null +++ b/test/swftests/NeOperator.as @@ -0,0 +1,24 @@ +// input: [] +// output: 123 + +package { +public class NeOperator { + public static function main(): int { + var res:int = 0; + if (1 != 2) { + res += 3; + } else { + res += 4; + } + if (2 != 2) { + res += 10; + } else { + res += 20; + } + if (9 == 9) { + res += 100; + } + return res; + } +} +} -- cgit v1.2.3