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.0rc2/] [gcc/] [testsuite/] [gnat.dg/] [test_prio.adb] - Diff between revs 304 and 384

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

Rev 304 Rev 384
-- { dg-do run }
-- { dg-do run }
-- { dg-options "-gnatws" }
-- { dg-options "-gnatws" }
 
 
pragma Locking_Policy (Ceiling_Locking);
pragma Locking_Policy (Ceiling_Locking);
with test_prio_p;use test_prio_p;
with test_prio_p;use test_prio_p;
with text_io; use text_io;
with text_io; use text_io;
procedure Test_Prio is
procedure Test_Prio is
   task Tsk is
   task Tsk is
      pragma Priority (10);
      pragma Priority (10);
   end Tsk;
   end Tsk;
   task body Tsk is
   task body Tsk is
   begin
   begin
      Sema2.Seize;
      Sema2.Seize;
      Sema1.Seize;
      Sema1.Seize;
      Put_Line ("error");
      Put_Line ("error");
   exception
   exception
      when Program_Error => null;  -- OK
      when Program_Error => null;  -- OK
   end;
   end;
begin
begin
   null;
   null;
end;
end;
 
 

powered by: WebSVN 2.1.0

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