-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'eyraud/153' into 'master'
[TGen] Fix interval size computation in floating point generation Closes #153 See merge request eng/ide/libadalang-tools!196
- Loading branch information
Showing
6 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package body Pkg is | ||
procedure Foo (P1 : My_Float) is | ||
begin | ||
null; | ||
end Foo; | ||
end Pkg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
with Ada.Numerics; use Ada.Numerics; | ||
|
||
package Pkg is | ||
type Precision_6 is digits 6; | ||
subtype My_Float is Precision_6 range -Pi .. Pi; | ||
procedure Foo (P1 : My_Float); | ||
end Pkg; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
project Test is | ||
for Source_Dirs use ("."); | ||
for Object_Dir use "obj"; | ||
end Test; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Set the seed to a known crashing seed | ||
export TGEN_RANDOM_SEED=389810392 | ||
gnattest -P test.gpr --gen-test-vectors -q --gen-test-num 200 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: | ||
This is a regression test case checking that TGen creates floating | ||
point values in the range of a floating point type with a range | ||
constraint. | ||
|
||
driver: shell_script | ||
control: | ||
- [XFAIL, 'x86', 'Marshalling not working for 32bits (UB03-008)'] |