xref: /php-src/Zend/tests/oss-fuzz-69765.phpt (revision d5683376)
1--TEST--
2OSS-Fuzz #69765: yield reference to nullsafe chain
3--FILE--
4<?php
5function &test($object) {
6    yield $object->y?->y;
7}
8?>
9--EXPECTF--
10Fatal error: Cannot take reference of a nullsafe chain in %s on line %d
11