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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- CA1012A4M.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 GENERIC SUBPROGRAM DECLARATIONS AND BODIES CAN BE
27
--     COMPILED SEPARATELY.
28
 
29
-- SEPARATE FILES ARE:
30
--   CA1012A0  A LIBRARY GENERIC PROCEDURE DECLARATION.
31
--   CA1012A1  A LIBRARY GENERIC PROCEDURE BODY (CA1012A0).
32
--   CA1012A2  A LIBRARY GENERIC FUNCTION DECLARATION.
33
--   CA1012A3  A LIBRARY GENERIC FUNCTION BODY (CA1012A2).
34
--   CA1012A4M THE MAIN PROCEDURE.
35
 
36
-- APPLICABILITY CRITERIA:
37
--     THIS TEST MUST RUN AND REPORT "PASSED" FOR ALL ADA 95 IMPLEMENTATIONS.
38
--     THIS WAS NOT REQUIRED FOR ADA 83.
39
 
40
-- HISTORY:
41
--     WKB 07/20/81  CREATED ORIGINAL TEST.
42
--     PWB 02/19/86  ADDED COMMENTS REGARDING NON-APPLICABILITY.
43
--     BCB 01/05/88  MODIFIED HEADER.
44
--     RLB 09/13/99  UPDATED APPLICABILITY CRITERIA FOR ADA 95.
45
--     RLB 09/15/99  REMOVED OBSOLETE COMMENT.
46
 
47
WITH REPORT, CA1012A0, CA1012A2;
48
USE REPORT;
49
PROCEDURE CA1012A4M IS
50
 
51
     N : INTEGER := 1;
52
 
53
     SUBTYPE S50 IS INTEGER RANGE 1..50;
54
 
55
     PROCEDURE P IS NEW CA1012A0 (S50);
56
 
57
     FUNCTION F IS NEW CA1012A2 (INTEGER);
58
 
59
BEGIN
60
     TEST ("CA1012A", "SEPARATELY COMPILED GENERIC SUBPROGRAM " &
61
                      "DECLARATIONS AND BODIES");
62
 
63
     P(N);
64
     IF N /= 2 THEN
65
          FAILED ("PROCEDURE NOT INVOKED");
66
     END IF;
67
 
68
     N := 1;
69
     IF F(N) /= 2 THEN
70
          FAILED ("FUNCTION NOT INVOKED");
71
     END IF;
72
 
73
     RESULT;
74
END CA1012A4M;

powered by: WebSVN 2.1.0

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