OpenCores
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.0rc4/] [gcc/] [testsuite/] [gnat.dg/] [misaligned_param.adb] - Rev 519

Compare with Previous | Blame | View Log

-- { dg-do run }
-- { dg-options "-gnatws" }
 
with Misaligned_Param_Pkg;
 
procedure Misaligned_Param is
 
   procedure Channel_Eth (Status : out Integer; Kind : out Integer);
 
   pragma Import (External, Channel_Eth);
   pragma Import_Valued_Procedure
     (Channel_Eth, "channel_eth", (Integer, Integer), (VALUE, REFERENCE));
 
   type Channel is record
      B : Boolean;
      Kind : Integer;
   end record;
   pragma Pack (Channel);
 
   MyChan : Channel;
   Status : Integer;
 
begin
   MyChan.Kind := 0;
   Channel_Eth (Status => Status, Kind => MyChan.Kind);
 
   if Mychan.Kind = 0 then
      raise Program_Error;
   end if;
end;
 

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.