xref: /php-src/ext/opcache/tests/jit/match_002.phpt (revision c16ad918)
1--TEST--
2JIT Match: 002 impossible input
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7--FILE--
8<?php
9class C {
10}
11function foo(C $i) {
12    return match($i) {
13    	1,2=>0,
14    	default=>42
15    };
16};
17var_dump(foo(new C));
18?>
19--EXPECT--
20int(42)
21