Skip to content

Commit b5f4014

Browse files
committed
Testcase for representation clause address
1 parent 8416081 commit b5f4014

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
with System;
2+
3+
procedure Test is
4+
-- A 32 bit hardware register
5+
type Unsigned_32 is mod 2 ** 32;
6+
Device_Input_Value: Unsigned_32;
7+
for Device_Input_Value'Address use System'To_Address (16#8000_05C4#);
8+
begin
9+
Device_Input_Value := 5;
10+
pragma Assert (Device_Input_Value + 1 = 6);
11+
end Test;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[1] file test.adb line 10 assertion: 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)