URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
-- { dg-do run }
|
-- { dg-do run }
|
-- { dg-options "-gnatws" }
|
-- { dg-options "-gnatws" }
|
|
|
with Misaligned_Param_Pkg;
|
with Misaligned_Param_Pkg;
|
|
|
procedure Misaligned_Param is
|
procedure Misaligned_Param is
|
|
|
procedure Channel_Eth (Status : out Integer; Kind : out Integer);
|
procedure Channel_Eth (Status : out Integer; Kind : out Integer);
|
|
|
pragma Import (External, Channel_Eth);
|
pragma Import (External, Channel_Eth);
|
pragma Import_Valued_Procedure
|
pragma Import_Valued_Procedure
|
(Channel_Eth, "channel_eth", (Integer, Integer), (VALUE, REFERENCE));
|
(Channel_Eth, "channel_eth", (Integer, Integer), (VALUE, REFERENCE));
|
|
|
type Channel is record
|
type Channel is record
|
B : Boolean;
|
B : Boolean;
|
Kind : Integer;
|
Kind : Integer;
|
end record;
|
end record;
|
pragma Pack (Channel);
|
pragma Pack (Channel);
|
|
|
MyChan : Channel;
|
MyChan : Channel;
|
Status : Integer;
|
Status : Integer;
|
|
|
begin
|
begin
|
MyChan.Kind := 0;
|
MyChan.Kind := 0;
|
Channel_Eth (Status => Status, Kind => MyChan.Kind);
|
Channel_Eth (Status => Status, Kind => MyChan.Kind);
|
|
|
if Mychan.Kind = 0 then
|
if Mychan.Kind = 0 then
|
raise Program_Error;
|
raise Program_Error;
|
end if;
|
end if;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.