Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gnat.dg/asynch.adb @ 144:8f4e72ab4e11
fix segmentation fault caused by nothing next cur_op to end
author | Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 23 Dec 2018 21:23:56 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 -- { dg-do compile } |
2 | |
3 package body asynch is | |
4 function null_ctrl return t_ctrl is | |
5 begin | |
6 return (Ada.Finalization.Controlled with stuff => 0); | |
7 end null_ctrl; | |
8 | |
9 procedure Proc (msg : String; c : t_ctrl := null_ctrl) is | |
10 begin | |
11 null; | |
12 end Proc; | |
13 | |
14 task type tsk; | |
15 task body tsk is | |
16 begin | |
17 select | |
18 delay 10.0; | |
19 Proc ("A message."); | |
20 then abort | |
21 null; | |
22 end select; | |
23 end tsk; | |
24 end asynch; |