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/] [tagged_type_pkg.adb] - Diff between revs 304 and 338

Only display areas with differences | Details | Blame | View Log

Rev 304 Rev 338
package body Tagged_Type_Pkg is
package body Tagged_Type_Pkg is
 
 
   function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is
   function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is
   begin
   begin
      if Obj = null then
      if Obj = null then
         return null;
         return null;
 
 
      else
      else
         --  The implicit conversion in the assignment to the return object
         --  The implicit conversion in the assignment to the return object
         --  must fail if Obj's actual is not a library-level object.
         --  must fail if Obj's actual is not a library-level object.
 
 
         return TT_Acc : access TT'Class := Obj do
         return TT_Acc : access TT'Class := Obj do
            TT_Acc := TT_Acc.Self;
            TT_Acc := TT_Acc.Self;
         end return;
         end return;
      end if;
      end if;
   end Pass_TT_Access;
   end Pass_TT_Access;
 
 
end Tagged_Type_Pkg;
end Tagged_Type_Pkg;
 
 

powered by: WebSVN 2.1.0

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