summaryrefslogtreecommitdiff
path: root/Zend/tests/jump07.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/jump07.phpt')
-rw-r--r--Zend/tests/jump07.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/Zend/tests/jump07.phpt b/Zend/tests/jump07.phpt
new file mode 100644
index 0000000..c0cb112
--- /dev/null
+++ b/Zend/tests/jump07.phpt
@@ -0,0 +1,11 @@
+--TEST--
+jump 07: goto into loop (backward)
+--FILE--
+<?php
+while (0) {
+ L1: echo "bug\n";
+}
+goto L1;
+?>
+--EXPECTF--
+Fatal error: 'goto' into loop or switch statement is disallowed in %sjump07.php on line 5