summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gnat.dg/aggr16.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gnat.dg/aggr16.adb')
-rw-r--r--gcc/testsuite/gnat.dg/aggr16.adb26
1 files changed, 26 insertions, 0 deletions
diff --git a/gcc/testsuite/gnat.dg/aggr16.adb b/gcc/testsuite/gnat.dg/aggr16.adb
new file mode 100644
index 000000000..2f559da25
--- /dev/null
+++ b/gcc/testsuite/gnat.dg/aggr16.adb
@@ -0,0 +1,26 @@
+-- { dg-do compile }
+
+with Aggr16_Pkg; use Aggr16_Pkg;
+
+package body Aggr16 is
+
+ type Arr is array (1 .. 4) of Time;
+
+ type Change_Type is (One, Two, Three);
+
+ type Change (D : Change_Type) is record
+ case D is
+ when Three =>
+ A : Arr;
+ when Others =>
+ B : Boolean;
+ end case;
+ end record;
+
+ procedure Proc is
+ C : Change (Three);
+ begin
+ C.A := (others => Null_Time);
+ end;
+
+end Aggr16;