Skip to content

Commit 0d1fbb9

Browse files
committed
Add test case
also include the range check.
1 parent 03caec2 commit 0d1fbb9

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
procedure Test is
2+
type Uint_8 is mod 2**8;
3+
Uint_Var : Uint_8 := 5;
4+
Int_Var : Integer;
5+
begin
6+
Int_Var := Integer'(Integer (Uint_Var));
7+
pragma Assert (Int_Var = 5);
8+
end Test;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[assertion.1] Range Check: SUCCESS
2+
[1] file test.adb line 7 assertion: SUCCESS
3+
VERIFICATION SUCCESSFUL
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from test_support import *
2+
3+
prove()

0 commit comments

Comments
 (0)