]> granicus.if.org Git - php/commitdiff
Forgot to commit test file...
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 10 Apr 2017 20:26:14 +0000 (22:26 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 10 Apr 2017 20:26:14 +0000 (22:26 +0200)
ext/opcache/tests/jmpz_jmp_elim.phpt [new file with mode: 0644]

diff --git a/ext/opcache/tests/jmpz_jmp_elim.phpt b/ext/opcache/tests/jmpz_jmp_elim.phpt
new file mode 100644 (file)
index 0000000..2749b41
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+Edge-cases in elimination of JMPZ JMP with same target
+--FILE--
+<?php
+
+$foo = "foo";
+if ($foo . "bar") { goto label; }
+label:
+if ($undef) { goto label2; }
+label2:
+echo "done\n";
+
+?>
+--EXPECTF--
+Notice: Undefined variable: undef in %s on line %d
+done