OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- A49027C.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
--
26
-- OBJECTIVE:
27
--   CHECK THAT IF A GENERIC PARAMETER IS A STATIC EXPRESSION AND THE
28
--   CORRESPONDING (IN) PARAMETER HAS A STATIC SUBTYPE IN THE INSTANCE,
29
--   THEN EACH USE OF THE FORMAL PARAMETER IN THE INSTANCE IS SAID TO
30
--   BE STATIC.
31
--
32
--   SEE AI-00505.  THIS TEST IS TAKEN FROM THE SECOND EXAMPLE.
33
--
34
-- HISTORY:
35
--   DAS  8 OCT 90   INITIAL VERSION.
36
--   PWN  12/01/95   CORRECTED FORMAT OF CALL TO REPORT.TEST
37
--   KAS  25NOV96    CHANGED LITERAL 7 TO (IMPDEF.CHAR_BITS-1)
38
--!
39
 
40
WITH REPORT; USE REPORT;
41
WITH IMPDEF;
42
 
43
PROCEDURE A49027C IS
44
 
45
     GENERIC
46
          X : INTEGER;
47
     PACKAGE GP IS
48
          TYPE REC IS
49
               RECORD
50
                    C : STRING (1..X);
51
               END RECORD;
52
     END GP;
53
 
54
     PACKAGE NP IS NEW GP (1);
55
 
56
     TYPE NR IS NEW NP.REC;
57
     FOR NR USE
58
          RECORD
59
               C AT 0 RANGE 0..IMPDEF.CHAR_BITS-1; -- SUBTYPE INDICATION
60
          END RECORD;             -- FOR C IN NP IS CONSIDERED STATIC.
61
 
62
BEGIN
63
     TEST("A49027C", "CHECK THAT IF A GENERIC PARAMETER IS A STATIC " &
64
          "EXPRESSION AND THE CORRESPONDING (IN) PARAMETER HAS A " &
65
          "STATIC SUBTYPE IN THE INSTANCE, THEN EACH USE OF THE " &
66
          "FORMAL PARAMETER IN THE INSTANCE IS SAID TO BE STATIC.");
67
 
68
     RESULT;
69
 
70
END A49027C;

powered by: WebSVN 2.1.0

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