summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr8.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/aggr8.adb')
-rw-r--r--gcc/testsuite/gnat.dg/aggr8.adb22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/aggr8.adb b/gcc/testsuite/gnat.dg/aggr8.adb
new file mode 100644
index 000000000..457150e16
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/aggr8.adb
@@ -0,0 +1,22 @@
+-- { dg-do compile }
+
+procedure aggr8 is
+
+ type Byte is mod 2 ** 8;
+ subtype two is integer range 1..2;
+ -- type Sequence is array (1 .. 2) of Byte;
+ type Sequence is array (Two) of Byte;
+
+ type Block is record
+ Head : Sequence := (11, 22);
+ end record;
+
+ procedure Nest is
+ Blk : Block; pragma Unreferenced (Blk);
+ begin
+ null;
+ end;
+
+begin
+ null;
+end;