blob: a205bc1e0dd5a66f8d114d694d10861eb8369952 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
-- { dg-do compile }
package Discr29 is
type Rec1 is record
I1 : Integer;
I2 : Integer;
I3 : Integer;
end record;
type Rec2 is tagged record
I1 : Integer;
I2 : Integer;
end record;
type Rec3 (D : Boolean) is record
case D is
when True => A : Rec1;
when False => B : Rec2;
end case;
end record;
procedure Proc (R : out Rec3);
Tmp : Rec2;
end Discr29;
|