mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 12:39:25 +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}
|
||||
uses
|
||||
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