source: src/router/php7/Zend/tests/bug72335.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 234 bytes
Line 
1--TEST--
2Misoptimize due to type narrowing
3--FILE--
4<?php
5
6function test() {
7    $b = false;
8    $x = (1<<53)+1;
9    do {
10        $x = 1.0 * ($x - (1<<53));
11    } while ($b);
12    return $x;
13}
14var_dump(test());
15
16?>
17--EXPECT--
18float(1)
Note: See TracBrowser for help on using the repository browser.