mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 16:59:11 +02:00
* run test with different options as it is tricky
This commit is contained in:
parent
889c55ecae
commit
f28cbbf73b
@ -1,5 +1,3 @@
|
|||||||
{ %opt=-Oonofastmath } { with fast math, the operands of min/max might be swapped and this breaks the tests using NaN }
|
|
||||||
|
|
||||||
{$mode objfpc}
|
{$mode objfpc}
|
||||||
uses
|
uses
|
||||||
Math;
|
Math;
|
2
tests/test/tminmax1.pp
Normal file
2
tests/test/tminmax1.pp
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
{ %opt=-O- -O1 } { ensure we test code generation without constant propagation }
|
||||||
|
{$I minmax.inc }
|
3
tests/test/tminmax2.pp
Normal file
3
tests/test/tminmax2.pp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{ %opt=-Oonofastmath -O3 } { with fast math, the operands of min/max might be swapped and this breaks the tests using NaN,
|
||||||
|
but test constant propagation and thus simplification }
|
||||||
|
{$I minmax.inc }
|
Loading…
Reference in New Issue
Block a user