diff options
Diffstat (limited to 'gcc/testsuite/gnat.dg/renaming4.ads')
-rw-r--r-- | gcc/testsuite/gnat.dg/renaming4.ads | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/renaming4.ads b/gcc/testsuite/gnat.dg/renaming4.ads new file mode 100644 index 000000000..4fdc9c108 --- /dev/null +++ b/gcc/testsuite/gnat.dg/renaming4.ads @@ -0,0 +1,15 @@ +package Renaming4 is + + type Big_Array is array (Natural range <>) of Integer; + + subtype Index is Natural range 1..4; + subtype My_Array is Big_Array(Index); + + A : constant My_Array := (1, 2, 3, 4); + + subtype Small is Index range 1..2; + subtype Small_Array is Big_Array(Small); + + B : Small_Array renames A(Index); + +end Renaming4; |