OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [misaligned_nest.adb] - Rev 716

Go to most recent revision | Compare with Previous | Blame | View Log

-- { dg-do run }
-- { dg-options "-gnatp" }
 
procedure Misaligned_Nest is
 
   type Int is record
      V : Integer;
   end record;
 
   type Block is record
      B : Boolean;
      I : Int;
   end record;
   pragma Pack (Block);
   for Block'Alignment use 1;
 
   type Pair is array (1 .. 2) of Block;
 
   P : Pair;
begin
   for K in P'Range loop
      P(K).I.V := 1;
   end loop;
end;
 
 
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.