2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gnat.dg / unchecked_convert9.ads
blobd4595f52a0258777d35f79f3879ac449d7678d08
1 with System;
2 with Ada.Unchecked_Conversion;
3 with Interfaces; use Interfaces;
5 package Unchecked_Convert9 is
7 type R is record
8 H : Unsigned_16;
9 L : Unsigned_16;
10 end record;
12 Var : R;
13 pragma Volatile (Var);
15 function Conv is new
16 Ada.Unchecked_Conversion (Source => Unsigned_32, Target => R);
18 procedure Proc;
20 end Unchecked_Convert9;