URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
-- { dg-do compile }
|
-- { dg-do compile }
|
|
|
package body asynch is
|
package body asynch is
|
function null_ctrl return t_ctrl is
|
function null_ctrl return t_ctrl is
|
begin
|
begin
|
return (Ada.Finalization.Controlled with stuff => 0);
|
return (Ada.Finalization.Controlled with stuff => 0);
|
end null_ctrl;
|
end null_ctrl;
|
|
|
procedure Proc (msg : String; c : t_ctrl := null_ctrl) is
|
procedure Proc (msg : String; c : t_ctrl := null_ctrl) is
|
begin
|
begin
|
null;
|
null;
|
end Proc;
|
end Proc;
|
|
|
task type tsk;
|
task type tsk;
|
task body tsk is
|
task body tsk is
|
begin
|
begin
|
select
|
select
|
delay 10.0;
|
delay 10.0;
|
Proc ("A message.");
|
Proc ("A message.");
|
then abort
|
then abort
|
null;
|
null;
|
end select;
|
end select;
|
end tsk;
|
end tsk;
|
end asynch;
|
end asynch;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.