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/] [packed_subtype.adb] - Rev 384
Compare with Previous | Blame | View Log
-- { dg-do run } procedure Packed_Subtype is subtype Ubyte is Integer range 0 .. 255; type Packet (Id : Ubyte) is record A, B : Ubyte; end record; pragma Pack (Packet); subtype My_Packet is Packet (Id => 1); MP : My_Packet; begin MP.A := 1; MP.B := 2; if MP.A /= 1 or else MP.B /= 2 then raise Program_Error; end if; end;