xref: /PHP-8.2/ext/opcache/tests/jit/add_010.phpt (revision cd32b472)
1--TEST--
2JIT ADD: 010 overflow handling
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.file_update_protection=0
7opcache.jit_buffer_size=1M
8--SKIPIF--
9<?php if (PHP_INT_SIZE != 8) die("skip: 64-bit only"); ?>
10--FILE--
11<?php
12function foo($a) {
13    var_dump($a+$a=$a+$a=$a+$a=$a);
14}
15foo(PHP_INT_MAX);
16?>
17--EXPECT--
18float(7.378697629483821E+19)
19