2 // Copyright (C) 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
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.
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"
29 #ifdef MING_SUPPORTS_ASM
36 push
"var_x" //stack: "var_x"
37 swap
//stack: "var_x" undefined
39 push
"hello" //stack: "var_x" "hello"
42 check_equals
(var_x
, "hello");