xref: /PHP-7.2/ext/opcache/tests/bug77191.phpt (revision 4eeb41d1)
1--TEST--
2Bug #77191: Assertion failure in dce_live_ranges() when silencing is used
3--FILE--
4<?php
5function test($x) {
6	switch (@$x['y']) {
7		case 1: return 'a';
8		case 2: return 'b';
9		case 3: return 'c';
10		case 4: return 'd';
11	}
12	return 'e';
13}
14var_dump(test([]));
15?>
16--EXPECT--
17string(1) "e"
18