Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gnat.dg/spark1.adb @ 138:fc828634a951
merge
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 08 Nov 2018 14:17:14 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
-- { dg-do compile } package body Spark1 is task body Worker is procedure Update with Global => (In_Out => Mailbox) -- { dg-error "global item \"Mailbox\" cannot have mode In_Out or Output|item already appears as input of task \"Worker\"" } is Tmp : Integer := Mailbox; begin Mailbox := Tmp + 1; end Update; X : Integer := Mailbox; begin loop Update; end loop; end; end;