2016-11-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / specs / unchecked_union1.ads
blob06313ef88c4ef56bde6d4434540d81399a07efcc
1 -- PR ada/28591
2 -- Reported by Martin Michlmayr <tbm@cyrius.com>
4 -- { dg-do compile }
5 -- { dg-options "-g" }
7 with Interfaces; use Interfaces;
9 package Unchecked_Union1 is
10 type Mode_Type is (Mode_B2);
12 type Value_Union (Mode : Mode_Type := Mode_B2) is record
13 case Mode is
14 when Mode_B2 =>
15 B2 : Integer_32;
16 end case;
17 end record;
18 pragma Unchecked_Union (Value_Union);
20 end Unchecked_Union1;