Debian Codegraph @

gcc/testsuite/gnat.dg/unchecked_union4.adb

raw
1 -- { dg-do compile }
2 -- { dg-options "-gnateV" }
3
4 procedure Unchecked_Union4 is
5
6 type R (Bytes_Mode : Boolean := False) is record
7 case Bytes_Mode is
8 when True =>
9 A : Boolean;
10 when False =>
11 B : Boolean;
12 end case;
13 end record with Unchecked_Union;
14
15 function F (Message : R) return Integer is (0);
16
17 begin
18 null;
19 end;