php-src/Zend/tests/jump02.phpt
2012-10-10 10:27:49 +08:00

17 lines
147 B
PHP

--TEST--
jump 02: goto forward
--FILE--
<?php
$n = 1;
L1:
if ($n > 3) goto L2;
echo "$n: ok\n";
$n++;
goto L1;
L2:
?>
--EXPECT--
1: ok
2: ok
3: ok