OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [misaligned_param.adb] - Blame information for rev 484

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

Line No. Rev Author Line
1 304 jeremybenn
-- { dg-do run }
2
-- { dg-options "-gnatws" }
3
 
4
with Misaligned_Param_Pkg;
5
 
6
procedure Misaligned_Param is
7
 
8
   procedure Channel_Eth (Status : out Integer; Kind : out Integer);
9
 
10
   pragma Import (External, Channel_Eth);
11
   pragma Import_Valued_Procedure
12
     (Channel_Eth, "channel_eth", (Integer, Integer), (VALUE, REFERENCE));
13
 
14
   type Channel is record
15
      B : Boolean;
16
      Kind : Integer;
17
   end record;
18
   pragma Pack (Channel);
19
 
20
   MyChan : Channel;
21
   Status : Integer;
22
 
23
begin
24
   MyChan.Kind := 0;
25
   Channel_Eth (Status => Status, Kind => MyChan.Kind);
26
 
27
   if Mychan.Kind = 0 then
28
      raise Program_Error;
29
   end if;
30
end;

powered by: WebSVN 2.1.0

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