diff options
Diffstat (limited to 'Zend/tests/jump09.phpt')
-rw-r--r-- | Zend/tests/jump09.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Zend/tests/jump09.phpt b/Zend/tests/jump09.phpt new file mode 100644 index 0000000..52a14b7 --- /dev/null +++ b/Zend/tests/jump09.phpt @@ -0,0 +1,13 @@ +--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 |