annotate gcc/testsuite/gnat.dg/lto8_pkg.ads @ 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 with System;
kono
parents:
diff changeset
2 with Unchecked_Conversion;
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 package Lto8_Pkg is
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 type Task_Priority_T is new Natural;
kono
parents:
diff changeset
7 function Convert_To_System_Priority is
kono
parents:
diff changeset
8 new Unchecked_Conversion (Task_Priority_T, System.Priority);
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 protected type Protected_Queue_T( PO_Priority : Task_Priority_T ) is
kono
parents:
diff changeset
11 pragma Priority (Convert_To_System_Priority (PO_Priority ));
kono
parents:
diff changeset
12 entry Seize;
kono
parents:
diff changeset
13 end Protected_Queue_T;
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 Sema1 : protected_Queue_T (5);
kono
parents:
diff changeset
16 Sema2 : protected_Queue_T (10);
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 end Lto8_Pkg;