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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gnat.dg/] [discr_test.adb] - Rev 774

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

--  { dg-do compile }
 
procedure Discr_Test is
  procedure P is begin null; end P;
 
  task type Tsk1 is
    entry rvT;
  end Tsk1;
 
  task body Tsk1 is
  begin
    accept rvT;
  end Tsk1;
 
  task type Tsk2 (pS : not null access procedure) is
    entry rvT;
  end Tsk2;
 
  task body Tsk2 is
    tskT : Tsk1;
  begin
    accept rvT do
      requeue tskT.rvT;
    end rvT;
    pS.all;
  end;
 
  Obj : Tsk2 (P'access);
begin
  Obj.rvT;
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.