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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gnat.dg/] [thin_pointer2_pkg.adb] - Diff between revs 304 and 338

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 338
package body Thin_Pointer2_Pkg is
package body Thin_Pointer2_Pkg is
 
 
   type SB is access constant String;
   type SB is access constant String;
 
 
   function Inner (S : SB) return Character is
   function Inner (S : SB) return Character is
   begin
   begin
      if S /= null and then S'Length > 0 then
      if S /= null and then S'Length > 0 then
         return S (S'First);
         return S (S'First);
      end if;
      end if;
      return '*';
      return '*';
   end;
   end;
 
 
   function F return Character is
   function F return Character is
   begin
   begin
      return Inner (SB (S));
      return Inner (SB (S));
   end;
   end;
 
 
end Thin_Pointer2_Pkg;
end Thin_Pointer2_Pkg;
 
 

powered by: WebSVN 2.1.0

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