xref: /php-src/Zend/tests/jump/jump11.phpt (revision 275f63e7)
1--TEST--
2jump 11: goto inside switch in constructor
3--FILE--
4<?php
5class foobar {
6    public function __construct() {
7        switch (1) {
8            default:
9                goto b;
10                a:
11                    print "ok!\n";
12                    break;
13                b:
14                    print "ok!\n";
15                    goto a;
16        }
17        print "ok!\n";
18    }
19}
20
21new foobar;
22?>
23--EXPECT--
24ok!
25ok!
26ok!
27