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

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

Rev 304 Rev 338
--  { dg-do compile }
--  { dg-do compile }
package body Sync_Iface_Test is
package body Sync_Iface_Test is
   protected body Buffer is
   protected body Buffer is
      procedure Dummy is begin null; end;
      procedure Dummy is begin null; end;
   end;
   end;
 
 
   function First (Obj : Buffer) return Natural is
   function First (Obj : Buffer) return Natural is
   begin
   begin
     return 0;
     return 0;
   end;
   end;
 
 
   procedure Do_Test (Dummy : Natural; Item : Buffer)
   procedure Do_Test (Dummy : Natural; Item : Buffer)
   is
   is
      Position1 : Natural := First (Item);
      Position1 : Natural := First (Item);
      Position2 : Natural := Item.First;   --  Problem here
      Position2 : Natural := Item.First;   --  Problem here
   begin
   begin
      null;
      null;
   end;
   end;
end;
end;
 
 

powered by: WebSVN 2.1.0

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