| 1 |
------------------------------------------------------------------------------ |
| 2 |
-- -- |
| 3 |
-- GNAT COMPILER COMPONENTS -- |
| 4 |
-- -- |
| 5 |
-- A D A . U N C H E C K E D _ C O N V E R S I O N -- |
| 6 |
-- -- |
| 7 |
-- S p e c -- |
| 8 |
-- -- |
| 9 |
-- This specification is derived from the Ada Reference Manual for use with -- |
| 10 |
-- GNAT. In accordance with the copyright of that document, you can freely -- |
| 11 |
-- copy and modify this specification, provided that if you redistribute a -- |
| 12 |
-- modified version, any changes that you have made are clearly indicated. -- |
| 13 |
-- -- |
| 14 |
------------------------------------------------------------------------------ |
| 15 |
|
| 16 |
-- This package is defined by ARM 13.9 to implement unchecked type |
| 17 |
-- conversions. |
| 18 |
|
| 19 |
generic |
| 20 |
type Source (<>) is limited private; |
| 21 |
type Target (<>) is limited private; |
| 22 |
|
| 23 |
function Ada.Unchecked_Conversion (S : Source) return Target; |
| 24 |
-- Returns the bit pattern of ``S`` for type ``Target`` |
| 25 |
|
| 26 |
pragma No_Elaboration_Code_All (Ada.Unchecked_Conversion); |
| 27 |
pragma Pure (Ada.Unchecked_Conversion); |
| 28 |
pragma Import (Intrinsic, Ada.Unchecked_Conversion); |