1--TEST--
2Pass result of inlined function by reference
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11function get_const() {
12    return 42;
13}
14
15function test() {
16    foo(get_const());
17}
18
19if (true) {
20    function foo(&$ref) {}
21}
22
23test();
24?>
25OK
26--EXPECTF--
27Notice: Only variables should be passed by reference in %swrong_inlining_001.php on line 7
28OK
29