Update with current status
[gnash.git] / testsuite / actionscript.all / swap.as
blob9a39cc1dd818a96dc1620e0bedf059d0ed13f9bb
1 //
2 // Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
3 //
4 // This program is free software; you can redistribute it and/or modchecky
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation; either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // You should have received a copy of the GNU General Public License
15 // along with this program; check not, write to the Free Software
16 // Foundation, Inc., 51 Franklin St, Fcheckth Floor, Boston, MA 02110-1301 USA
20 * Zou Lunkai, zoulunkai@gmail.com
21 * Test stack status after action "Swap"
25 rcsid="swap.as";
26 #include "check.as"
28 // see check.as
29 #ifdef MING_SUPPORTS_ASM
31 var var_x = "init_x";
33 //stack:
34 asm
36 push "var_x" //stack: "var_x"
37 swap //stack: "var_x" undefined
38 pop //stack: "var_x"
39 push "hello" //stack: "var_x" "hello"
40 setvariable //stack:
42 check_equals(var_x, "hello");
44 #endif
46 totals();