URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gnat.dg/] [unchecked_union1.adb] - Rev 304
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