source: src/router/php7/Zend/tests/entry_block_with_predecessors.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 459 bytes
Line 
1--TEST--
2For SSA form the entry block should have no predecessors
3--FILE--
4<?php
5
6function test() {
7    while (true) {
8        var_dump($a + 1);
9        $a = 1;
10        if (@$i++) {
11            break;
12        }
13    }
14}
15
16function test2() {
17    while (true) {
18        $a = 42;
19        if (@$i++ > 1) {
20            break;
21        }
22        $a = new stdClass;
23    }
24}
25
26test();
27test2();
28
29?>
30--EXPECTF--
31Notice: Undefined variable: a in %s on line %d
32int(1)
33int(2)
Note: See TracBrowser for help on using the repository browser.