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] - Rev 700

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

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

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

powered by: WebSVN 2.1.0

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