Skip to content

Commit 24ece23

Browse files
authored
Merge pull request #328 from spanners/loop_range_test
Add test for N_Loop_Parameter_Specification #28
2 parents 276b09f + f3df742 commit 24ece23

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
procedure Test is
2+
3+
type Unsigned_16 is mod 2 ** 16;
4+
for Unsigned_16'Size use 16;
5+
6+
RAM_Start : constant Unsigned_16 := 16#0200#;
7+
RAM_End : constant Unsigned_16 := 16#2199#;
8+
9+
begin
10+
for I in Unsigned_16 range RAM_Start .. RAM_End loop
11+
pragma Assert (I < 16#2200#);
12+
end loop;
13+
end Test;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[test.assertion.1] line 11 assertion I < 16#2200#: SUCCESS
2+
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)