Skip to content

Commit f2356d1

Browse files
committed
Extend the test to check the address
1 parent 75caf25 commit f2356d1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

testsuite/gnat2goto/tests/representation_clause_address/test.adb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
with System;
1+
with System; use System;
22

33
procedure Test is
44
-- A 32 bit hardware register
@@ -8,4 +8,5 @@ procedure Test is
88
begin
99
Device_Input_Value := 5;
1010
pragma Assert (Device_Input_Value + 1 = 6);
11+
pragma Assert (Device_Input_Value'Address = System'To_Address (16#8000_05C4#));
1112
end Test;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
[1] file test.adb line 10 assertion: SUCCESS
2+
[2] file test.adb line 11 assertion: SUCCESS
23
VERIFICATION SUCCESSFUL

0 commit comments

Comments
 (0)