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