xref: /PHP-5.4/Zend/tests/jump11.phpt (revision f66f55ed)
1--TEST--
2jump 08: 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