OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [a/] [a55b14a.ada] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- A55B14A.ADA
2
 
3
--                             Grant of Unlimited Rights
4
--
5
--     Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
6
--     F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained 
7
--     unlimited rights in the software and documentation contained herein.
8
--     Unlimited rights are defined in DFAR 252.227-7013(a)(19).  By making 
9
--     this public release, the Government intends to confer upon all 
10
--     recipients unlimited rights  equal to those held by the Government.  
11
--     These rights include rights to use, duplicate, release or disclose the 
12
--     released technical data and computer software in whole or in part, in 
13
--     any manner and for any purpose whatsoever, and to have or permit others 
14
--     to do so.
15
--
16
--                                    DISCLAIMER
17
--
18
--     ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19
--     DISCLOSED ARE AS IS.  THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED 
20
--     WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
21
--     SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE 
22
--     OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
23
--     PARTICULAR PURPOSE OF SAID MATERIAL.
24
--*
25
-- USING A  CASE_STATEMENT , CHECK THAT THE SUBTYPE BOUNDS ASSOCIATED
26
--    WITH A LOOP OF THE FORM
27
--               FOR  I  IN  ST  LOOP
28
--    ARE, RESPECTIVELY,  ST'FIRST..ST'LAST WHEN ST IS STATIC.
29
 
30
-- RM 04/07/81
31
-- SPS 3/2/83
32
-- JBG 3/14/83
33
 
34
WITH REPORT;
35
PROCEDURE  A55B14A  IS
36
 
37
     USE REPORT;
38
     USE ASCII ;
39
 
40
     TYPE  ENUMERATION  IS  ( A,B,C,D,MIDPOINT,E,F,G,H );
41
     SUBTYPE   ST_I  IS       INTEGER RANGE 1..5       ;
42
     TYPE  NEW_ST_I  IS   NEW INTEGER RANGE 1..5       ;
43
     SUBTYPE   ST_E  IS       ENUMERATION RANGE B..G   ;
44
     SUBTYPE   ST_B  IS       BOOLEAN RANGE FALSE..FALSE;
45
     SUBTYPE   ST_C  IS       CHARACTER RANGE 'A'..DEL ;
46
 
47
BEGIN
48
 
49
     TEST("A55B14A" , "CHECK THAT THE SUBTYPE OF A LOOP PARAMETER"     &
50
                      " IN A LOOP OF THE FORM  'FOR  I  IN  ST  LOOP'" &
51
                      " ARE CORRECTLY DETERMINED WHEN ST IS STATIC" );
52
 
53
     BEGIN
54
 
55
 
56
          FOR  I  IN  ST_I  LOOP
57
 
58
               CASE  I  IS
59
                    WHEN  1 | 3 | 5  =>  NULL;
60
                    WHEN  2 | 4      =>  NULL;
61
               END CASE;
62
 
63
          END LOOP;
64
 
65
 
66
          FOR  I  IN  NEW_ST_I  LOOP
67
 
68
               CASE  I  IS
69
                    WHEN  1 | 3 | 5  =>  NULL;
70
                    WHEN  2 | 4      =>  NULL;
71
               END CASE;
72
 
73
          END LOOP;
74
 
75
 
76
          FOR  I  IN  ST_B  LOOP
77
 
78
               CASE  I  IS
79
                    WHEN  FALSE  =>  NULL;
80
               END CASE;
81
 
82
          END LOOP;
83
 
84
 
85
          FOR  I  IN  ST_C  LOOP
86
 
87
               CASE  I  IS
88
                    WHEN  'A'..'U'  =>  NULL;
89
                    WHEN  'V'..DEL  =>  NULL;
90
               END CASE;
91
 
92
          END LOOP;
93
 
94
 
95
          FOR  I  IN  ST_E  LOOP
96
 
97
               CASE  I  IS
98
                    WHEN  B..D      =>  NULL;
99
                    WHEN  E..G      =>  NULL;
100
                    WHEN  MIDPOINT  =>  NULL;
101
               END CASE;
102
 
103
          END LOOP;
104
 
105
 
106
     END;
107
 
108
 
109
     RESULT;
110
 
111
 
112
END A55B14A;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.