Skip to content

Commit 6e23f2b

Browse files
committed
Forgot to commit test file...
1 parent 6f950e8 commit 6e23f2b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

ext/opcache/tests/jmpz_jmp_elim.phpt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
--TEST--
2+
Edge-cases in elimination of JMPZ JMP with same target
3+
--FILE--
4+
<?php
5+
6+
$foo = "foo";
7+
if ($foo . "bar") { goto label; }
8+
label:
9+
if ($undef) { goto label2; }
10+
label2:
11+
echo "done\n";
12+
13+
?>
14+
--EXPECTF--
15+
Notice: Undefined variable: undef in %s on line %d
16+
done

0 commit comments

Comments
 (0)