diff options
Diffstat (limited to 'Zend/tests/jump10.phpt')
-rwxr-xr-x | Zend/tests/jump10.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/jump10.phpt b/Zend/tests/jump10.phpt new file mode 100755 index 0000000000..67206a29ae --- /dev/null +++ b/Zend/tests/jump10.phpt @@ -0,0 +1,13 @@ +--TEST-- +jump 10: goto into switch (forward) +--FILE-- +<?php +goto L1; +switch (0) { + case 1: + L1: echo "bug\n"; + break; +} +?> +--EXPECTF-- +Fatal error: 'goto' into loop or switch statement is disallowed in %sjump10.php on line 2 |