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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- CC3607B.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 WHEN A DEFAULT SUBPROGRAM IS SPECIFIED WITH A BOX, A
27
--     SUBPROGRAM DIRECTLY VISIBLE AT THE POINT OF INSTANTIATION
28
--     IS USED.
29
 
30
-- HISTORY:
31
--     LDC 08/23/88  CREATED ORIGINAL TEST.
32
 
33
WITH REPORT; USE REPORT;
34
PROCEDURE CC3607B IS
35
 
36
BEGIN
37
     TEST ("CC3607B", "CHECK THAT WHEN A DEFAULT SUBPROGRAM IS " &
38
                      "SPECIFIED WITH A BOX, A SUBPROGRAM DIRECTLY " &
39
                      "VISIBLE AT THE POINT OF INSTANTIATION IS USED");
40
     DECLARE
41
          PACKAGE PROC_PACK IS
42
               PROCEDURE PROC;
43
 
44
               GENERIC
45
                    WITH PROCEDURE PROC IS <>;
46
               PACKAGE GEN_PACK IS
47
                    PROCEDURE DO_PROC;
48
               END GEN_PACK;
49
          END PROC_PACK;
50
          USE PROC_PACK;
51
 
52
          PACKAGE BODY PROC_PACK IS
53
               PROCEDURE PROC IS
54
               BEGIN
55
                    FAILED("WRONG SUBPROGRAM WAS USED");
56
               END PROC;
57
 
58
               PACKAGE BODY GEN_PACK IS
59
                    PROCEDURE DO_PROC IS
60
                    BEGIN
61
                         PROC;
62
                    END DO_PROC;
63
               END GEN_PACK;
64
          END PROC_PACK;
65
 
66
          PROCEDURE PROC IS
67
          BEGIN
68
               COMMENT ("SUBPROGRAM VISIBLE AT INSTANTIATION WAS " &
69
                        "USED");
70
          END PROC;
71
 
72
          PACKAGE NEW_PACK IS NEW GEN_PACK;
73
 
74
     BEGIN
75
          NEW_PACK.DO_PROC;
76
     END;
77
 
78
     RESULT;
79
END CC3607B;

powered by: WebSVN 2.1.0

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