annotate gcc/testsuite/ada/acats/tests/a/a83a02b.ada @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 -- A83A02B.ADA
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 -- Grant of Unlimited Rights
kono
parents:
diff changeset
4 --
kono
parents:
diff changeset
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
kono
parents:
diff changeset
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
kono
parents:
diff changeset
7 -- unlimited rights in the software and documentation contained herein.
kono
parents:
diff changeset
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
kono
parents:
diff changeset
9 -- this public release, the Government intends to confer upon all
kono
parents:
diff changeset
10 -- recipients unlimited rights equal to those held by the Government.
kono
parents:
diff changeset
11 -- These rights include rights to use, duplicate, release or disclose the
kono
parents:
diff changeset
12 -- released technical data and computer software in whole or in part, in
kono
parents:
diff changeset
13 -- any manner and for any purpose whatsoever, and to have or permit others
kono
parents:
diff changeset
14 -- to do so.
kono
parents:
diff changeset
15 --
kono
parents:
diff changeset
16 -- DISCLAIMER
kono
parents:
diff changeset
17 --
kono
parents:
diff changeset
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
kono
parents:
diff changeset
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
kono
parents:
diff changeset
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
kono
parents:
diff changeset
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
kono
parents:
diff changeset
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
kono
parents:
diff changeset
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
kono
parents:
diff changeset
24 --*
kono
parents:
diff changeset
25 -- CHECK THAT A LABEL IN A NESTED TASK CAN BE IDENTICAL TO A LABEL
kono
parents:
diff changeset
26 -- OUTSIDE THE TASK.
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 -- "INSIDE LABEL": INSIDE * TASK BODY _TASK A
kono
parents:
diff changeset
30 -- * BLOCK IN TASK BODY _TASKBLOCK B
kono
parents:
diff changeset
31 -- * LOOP IN BLOCK IN TASK BODY _TASKBLOCKLOOP
kono
parents:
diff changeset
32 -- * ACCEPT ST. WITHIN TASK BDY _TASKACCEPT D
kono
parents:
diff changeset
33
kono
parents:
diff changeset
34 -- "OUTSIDE LABEL": INSIDE * MAIN _MAIN 1
kono
parents:
diff changeset
35 -- * BLOCK IN MAIN _BLOCK 2
kono
parents:
diff changeset
36 -- * LOOP IN BLOCK IN MAIN _BLOCKLOOP 3
kono
parents:
diff changeset
37 -- * LOOP IN MAIN _LOOP 4
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 -- CASES TESTED: A1 B2 A3 B4 | 1 2 3 4
kono
parents:
diff changeset
40 -- D1 C2 C3 D4 ---+----------
kono
parents:
diff changeset
41 -- A | X . X .
kono
parents:
diff changeset
42 -- B | . X . X
kono
parents:
diff changeset
43 -- C | . X X .
kono
parents:
diff changeset
44 -- D | X . . X
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 -- RM 02/10/80
kono
parents:
diff changeset
48
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 WITH REPORT ;
kono
parents:
diff changeset
51 PROCEDURE A83A02B IS
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 USE REPORT ;
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 TASK TYPE TASK1 IS
kono
parents:
diff changeset
56 ENTRY E1 ;
kono
parents:
diff changeset
57 END TASK1 ;
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 TASK BODY TASK1 IS
kono
parents:
diff changeset
60 BEGIN
kono
parents:
diff changeset
61
kono
parents:
diff changeset
62 << LAB_TASK_MAIN >> NULL ; -- A1 A
kono
parents:
diff changeset
63 << LAB_TASK_BLOCKLOOP >> NULL ; -- A3
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 BEGIN
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 << LAB_TASKBLOCK_BLOCK >> NULL ; -- B2 B
kono
parents:
diff changeset
68 << LAB_TASKBLOCK_LOOP >> NULL ; -- B4
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 FOR I IN 1..2 LOOP
kono
parents:
diff changeset
71 << LAB_TASKBLOCKLOOP_BLOCK >>NULL ; -- C2 C
kono
parents:
diff changeset
72 << LAB_TASKBLOCKLOOP_BLOCKLOOP >>
kono
parents:
diff changeset
73 NULL ; -- C3
kono
parents:
diff changeset
74 END LOOP;
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 END ;
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 ACCEPT E1 DO
kono
parents:
diff changeset
79 << LAB_TASKACCEPT_MAIN >> NULL ; -- D1 D
kono
parents:
diff changeset
80 << LAB_TASKACCEPT_LOOP >> NULL ; -- D4
kono
parents:
diff changeset
81 END E1 ;
kono
parents:
diff changeset
82
kono
parents:
diff changeset
83 END TASK1 ;
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 BEGIN
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 TEST( "A83A02B" , "CHECK THAT A LABEL IN A NESTED TASK" &
kono
parents:
diff changeset
88 " CAN BE IDENTICAL TO A LABEL" &
kono
parents:
diff changeset
89 " OUTSIDE THE TASK" );
kono
parents:
diff changeset
90
kono
parents:
diff changeset
91 << LAB_TASK_MAIN >> NULL ; -- A1 1
kono
parents:
diff changeset
92 << LAB_TASKACCEPT_MAIN >> NULL ; -- D1
kono
parents:
diff changeset
93
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 BEGIN
kono
parents:
diff changeset
96
kono
parents:
diff changeset
97 << LAB_TASKBLOCK_BLOCK >> NULL ; -- B2 2
kono
parents:
diff changeset
98 << LAB_TASKBLOCKLOOP_BLOCK >> NULL ; -- C2
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 FOR I IN 1..2 LOOP
kono
parents:
diff changeset
101 << LAB_TASK_BLOCKLOOP >> NULL ; -- A3 3
kono
parents:
diff changeset
102 << LAB_TASKBLOCKLOOP_BLOCKLOOP >> NULL ; -- C3
kono
parents:
diff changeset
103 END LOOP;
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 END ;
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107 FOR I IN 1..2 LOOP
kono
parents:
diff changeset
108 << LAB_TASKBLOCK_LOOP >> NULL ; -- B4 4
kono
parents:
diff changeset
109 << LAB_TASKACCEPT_LOOP >> NULL ; -- D4
kono
parents:
diff changeset
110 END LOOP;
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 RESULT ;
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 END A83A02B ;