gcc/testsuite/gnat.dg/array40.adb
raw| 1 | -- { dg-do run } |
| 2 | -- { dg-options "-gnatws" } |
| 3 | |
| 4 | with System.Storage_Elements; |
| 5 | with Array40_Pkg; use Array40_Pkg; |
| 6 | |
| 7 | procedure Array40 is |
| 8 | |
| 9 | use System; |
| 10 | use System.Storage_Elements; |
| 11 | |
| 12 | begin |
| 13 | if A(1)'Size /= 40 then |
| 14 | raise Program_Error; |
| 15 | end if; |
| 16 | |
| 17 | if (A(2)'Address - A(1)'Address) * System.Storage_Unit /= 40 then |
| 18 | raise Program_Error; |
| 19 | end if; |
| 20 | |
| 21 | end; |