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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [a/] [ad7201a.ada] - Blame information for rev 720

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 720 jeremybenn
-- AD7201A.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
-- OBJECTIVE:
26
--     CHECK THAT THE PREFIX OF THE 'ADDRESS ATTRIBUTE CAN DENOTE A
27
--     PACKAGE, SUBPROGRAM, TASK TYPE, SINGLE TASK, AND LABEL.
28
 
29
-- HISTORY:
30
--     DHH 09/01/88  CREATED ORIGINAL TEST.
31
--     RJW 02/23/90  REMOVED TESTS FOR THE 'ADDRESS ATTRIBUTE APPLIED TO
32
--                   A GENERIC UNIT.  REMOVED DECLARATION OF TYPE
33
--                   "COLOR".
34
--     DTN 11/22/91  DELETED SUBPART (A).
35
 
36
WITH SYSTEM;
37
WITH REPORT; USE REPORT;
38
PROCEDURE AD7201A IS
39
 
40
     SUBTYPE MY_ADDRESS IS SYSTEM.ADDRESS;
41
 
42
BEGIN
43
     TEST ("AD7201A", "CHECK THAT THE PREFIX OF THE 'ADDRESS " &
44
                      "ATTRIBUTE CAN DENOTE A PACKAGE, " &
45
                      "SUBPROGRAM, TASK TYPE, SINGLE TASK, AND LABEL");
46
 
47
     DECLARE
48
          PACKAGE B IS
49
          END B;
50
          B1 : BOOLEAN := (B'ADDRESS IN MY_ADDRESS);
51
 
52
          PROCEDURE C;
53
          C1 : BOOLEAN := (C'ADDRESS IN MY_ADDRESS);
54
 
55
          FUNCTION D RETURN BOOLEAN;
56
          D1 : BOOLEAN := (D'ADDRESS IN MY_ADDRESS);
57
 
58
          TASK E IS
59
          END E;
60
          E1 : BOOLEAN := (E'ADDRESS IN MY_ADDRESS);
61
 
62
          TASK TYPE F IS
63
          END F;
64
          F1 : BOOLEAN := (F'ADDRESS IN MY_ADDRESS);
65
 
66
          G1 : BOOLEAN;
67
 
68
          PACKAGE BODY B IS
69
          BEGIN
70
               NULL;
71
          END B;
72
 
73
          PROCEDURE C IS
74
          BEGIN
75
               NULL;
76
          END C;
77
 
78
          FUNCTION D RETURN BOOLEAN IS
79
          BEGIN
80
               RETURN TRUE;
81
          END D;
82
 
83
          TASK BODY E IS
84
          BEGIN
85
               NULL;
86
          END E;
87
 
88
          TASK BODY F IS
89
          BEGIN
90
               NULL;
91
          END F;
92
 
93
     BEGIN
94
<<G>>     G1 := (G'ADDRESS IN MY_ADDRESS);
95
     END;
96
 
97
     RESULT;
98
END AD7201A;

powered by: WebSVN 2.1.0

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