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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gnat.dg/] [timing_events.adb] - Rev 304

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

-- { dg-do run }
 
procedure Timing_Events is
   type Timing_Event_Handler is access protected procedure;
 
   protected PO is
      entry     Test;
      procedure Proc;
   private
      Data : Integer := 99;
   end PO;
 
   protected body PO is
      entry Test when True is
         Handler : Timing_Event_Handler := Proc'Access;
      begin
         Handler.all;
      end Test;
 
      procedure Proc is
      begin
         if Data /= 99 then
            raise Program_Error;
         end if;
      end Proc;
   end PO;
begin
   PO.Test;
end;
 

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.