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/] [a95074d.ada] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- A95074D.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
-- CHECK THAT 'ADDRESS, 'CONSTRAINED, 'SIZE, 'POSITION, 'FIRST_BIT,
26
-- AND 'LAST_BIT CAN BE APPLIED TO AN OUT PARAMETER OR OUT PARAMETER
27
-- SUBCOMPONENT THAT DOES NOT HAVE AN ACCESS TYPE.
28
 
29
-- JWC 6/25/85
30
 
31
WITH REPORT; USE REPORT;
32
WITH SYSTEM;
33
PROCEDURE A95074D IS
34
BEGIN
35
 
36
     TEST ("A95074D", "CHECK THAT ATTRIBUTES MAY BE APPLIED TO " &
37
           "NON-ACCESS FORMAL OUT PARAMETERS");
38
 
39
     DECLARE
40
 
41
          TYPE ARR IS ARRAY (1 .. 2) OF BOOLEAN;
42
 
43
          TYPE REC (D : INTEGER := 1) IS RECORD
44
               Y : BOOLEAN;
45
               X : ARR;
46
          END RECORD;
47
 
48
          TASK T IS
49
               ENTRY E (C1 : OUT ARR; C2 : OUT REC);
50
          END T;
51
 
52
          TASK BODY T IS
53
               X : SYSTEM.ADDRESS;
54
               I : INTEGER;
55
          BEGIN
56
               IF IDENT_BOOL (FALSE) THEN
57
                    ACCEPT E (C1 : OUT ARR; C2 : OUT REC) DO
58
 
59
                         C2.Y := C2'CONSTRAINED;
60
 
61
                         X := C1'ADDRESS;
62
                         X := C1(1)'ADDRESS;
63
                         X := C2'ADDRESS;
64
                         X := C2.Y'ADDRESS;
65
 
66
                         I := C1'SIZE;
67
                         I := C2.Y'SIZE;
68
 
69
                         I := C2.X'POSITION;
70
                         I := C2.Y'FIRST_BIT;
71
                         I := C2.Y'LAST_BIT;
72
                    END E;
73
               END IF;
74
          END T;
75
 
76
     BEGIN
77
          NULL;
78
     END;
79
 
80
     RESULT;
81
 
82
END A95074D;

powered by: WebSVN 2.1.0

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