We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8416081 commit b5f4014Copy full SHA for b5f4014
testsuite/gnat2goto/tests/representation_clause_address/test.adb
@@ -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;
testsuite/gnat2goto/tests/representation_clause_address/test.out
@@ -0,0 +1,2 @@
+[1] file test.adb line 10 assertion: SUCCESS
+VERIFICATION SUCCESSFUL
testsuite/gnat2goto/tests/representation_clause_address/test.py
@@ -0,0 +1,3 @@
+from test_support import *
+prove()
0 commit comments