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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [self.adb] - Blame information for rev 696

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 696 jeremybenn
package body Self is
2
   function G (X : Integer) return Lim is
3
   begin
4
      return R : Lim := (Comp => X, others => <>);
5
   end G;
6
 
7
   procedure Change (X : in out Lim; Incr : Integer) is
8
   begin
9
      X.Comp := X.Comp + Incr;
10
      X.Self_Default.Comp := X.Comp + Incr;
11
      X.Self_Anon_Default.Comp := X.Comp + Incr;
12
   end Change;
13
 
14
   function Get (X : Lim) return Integer is
15
   begin
16
      return X.Comp;
17
   end;
18
end Self;

powered by: WebSVN 2.1.0

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