* run test with different options as it is tricky

This commit is contained in:
florian 2024-03-27 22:39:42 +01:00
parent 889c55ecae
commit f28cbbf73b
3 changed files with 5 additions and 2 deletions

View File

@ -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
View 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
View 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 }