xref: /PHP-8.0/Zend/tests/jump09.phpt (revision f8d79582)
1--TEST--
2jump 09: goto into switch (backward)
3--FILE--
4<?php
5switch (0) {
6    case 1:
7        L1: echo "bug\n";
8        break;
9}
10goto L1;
11?>
12--EXPECTF--
13Fatal error: 'goto' into loop or switch statement is disallowed in %sjump09.php on line 7
14