1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00
Files
archived-php-src/Zend/tests/jump11.phpt
2018-10-14 12:07:20 -03:00

27 lines
427 B
PHP

--TEST--
jump 08: goto inside switch in constructor
--FILE--
<?php
class foobar {
public function __construct() {
switch (1) {
default:
goto b;
a:
print "ok!\n";
break;
b:
print "ok!\n";
goto a;
}
print "ok!\n";
}
}
new foobar;
?>
--EXPECT--
ok!
ok!
ok!