php-src/Zend/tests/jump09.phpt
2008-03-28 14:35:01 +00:00

14 lines
228 B
PHP
Executable File

--TEST--
jump 09: goto into switch (backward)
--FILE--
<?php
switch (0) {
case 1:
L1: echo "bug\n";
break;
}
goto L1;
?>
--EXPECTF--
Fatal error: 'goto' into loop or switch statement is disallowed in %sjump09.php on line 7