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/] [cd/] [cd2a83c.tst] - Blame information for rev 309

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

Line No. Rev Author Line
1 294 jeremybenn
-- CD2A83C.TST
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
-- OBJECTIVE:
26
--     CHECK THAT SIZE AND COLLECTION SIZE SPECIFICATIONS
27
--     FOR AN ACCESS TYPE CAN BE GIVEN IN THE VISIBLE OR
28
--     PRIVATE PART OF A PACKAGE FOR A TYPE DECLARED IN
29
--     THE VISIBLE PART.
30
 
31
-- HISTORY:
32
--     JET 09/01/87  CREATED ORIGINAL TEST.
33
--     DHH 04/11/89  CHANGED OPERATOR ON 'SIZE CHECKS AND REMOVED
34
--                   APPLICABILITY CRITERIA.
35
 
36
--     $ACC_SIZE IS THE SIZE IN BITS FOR AN ACCESS VARIABLE WHOSE
37
--     DESIGNATED TYPE IS A STRING TYPE.
38
 
39
WITH REPORT; USE REPORT;
40
PROCEDURE CD2A83C IS
41
 
42
     SPECIFIED_SIZE : CONSTANT := $ACC_SIZE;
43
     COLL_SIZE : CONSTANT := 256;
44
 
45
     TYPE CHECK_ACC IS ACCESS STRING;
46
 
47
     FOR CHECK_ACC'STORAGE_SIZE USE COLL_SIZE;
48
 
49
     FOR CHECK_ACC'SIZE USE SPECIFIED_SIZE;
50
 
51
     PACKAGE P IS
52
          TYPE ACC_IN_P IS ACCESS STRING;
53
          FOR ACC_IN_P'STORAGE_SIZE USE COLL_SIZE;
54
          FOR ACC_IN_P'SIZE USE SPECIFIED_SIZE;
55
          TYPE PRIVATE_ACC IS PRIVATE;
56
          TYPE ALT_ACC_IN_P IS ACCESS STRING;
57
     PRIVATE
58
          TYPE PRIVATE_ACC IS ACCESS STRING;
59
          FOR ALT_ACC_IN_P'STORAGE_SIZE USE COLL_SIZE;
60
          FOR ALT_ACC_IN_P'SIZE USE SPECIFIED_SIZE;
61
     END P;
62
 
63
     USE P;
64
 
65
     MINIMUM_SIZE : INTEGER := IDENT_INT(SPECIFIED_SIZE);
66
 
67
BEGIN
68
 
69
     TEST("CD2A83C", "CHECK THAT WHEN SIZE AND COLLECTION SIZE " &
70
                     "SPECIFICATIONS FOR AN ACCESS TYPE, " &
71
                     "CAN BE GIVEN IN " &
72
                     "THE VISIBLE OR PRIVATE PART OF A PACKAGE FOR " &
73
                     "A TYPE DECLARED IN THE VISIBLE PART");
74
 
75
     IF CHECK_ACC'SIZE /= MINIMUM_SIZE THEN
76
          FAILED ("CHECK_ACC'SIZE /= SPECIFIED_SIZE");
77
     END IF;
78
 
79
     IF CHECK_ACC'STORAGE_SIZE < COLL_SIZE THEN
80
          FAILED ("CHECK_ACC'STORAGE_SIZE TOO SMALL");
81
     END IF;
82
 
83
     IF ACC_IN_P'SIZE /= MINIMUM_SIZE THEN
84
          FAILED ("ACC_IN_P'SIZE /= SPECIFIED_SIZE");
85
     END IF;
86
 
87
     IF ACC_IN_P'STORAGE_SIZE < COLL_SIZE THEN
88
          FAILED ("ACC_IN_P'STORAGE_SIZE TOO SMALL");
89
     END IF;
90
 
91
     IF ALT_ACC_IN_P'SIZE /= MINIMUM_SIZE THEN
92
          FAILED ("ALT_ACC_IN_P'SIZE /= SPECIFIED_SIZE");
93
     END IF;
94
 
95
     IF ALT_ACC_IN_P'STORAGE_SIZE < COLL_SIZE THEN
96
          FAILED ("ALT_ACC_IN_P'STORAGE_SIZE TOO SMALL");
97
     END IF;
98
 
99
     RESULT;
100
 
101
END CD2A83C;

powered by: WebSVN 2.1.0

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