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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [thin_pointer2_pkg.adb] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 304 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.