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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 696 jeremybenn
package body Thin_Pointer2_Pkg is
2
 
3
   type SB is access constant String;
4
 
5
   function Inner (S : SB) return Character is
6
   begin
7
      if S /= null and then S'Length > 0 then
8
         return S (S'First);
9
      end if;
10
      return '*';
11
   end;
12
 
13
   function F return Character is
14
   begin
15
      return Inner (SB (S));
16
   end;
17
 
18
end Thin_Pointer2_Pkg;

powered by: WebSVN 2.1.0

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