URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [unchecked_union1.adb] - Rev 324
Go to most recent revision | Compare with Previous | Blame | View Log
-- { dg-do run } procedure Unchecked_Union1 is type Bit is (Zero, One); type U (X : Bit := Zero) is record case X is when Zero => I: Integer; when One => F : Float; end case; end record; for U use record I at 0 range 0 .. 31; F at 0 range 0 .. 31; end record; pragma Unchecked_Union(U); begin if U'Object_Size /= 32 then raise Program_Error; end if; end;
Go to most recent revision | Compare with Previous | Blame | View Log