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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [c2/] [c23006e.ada] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
-- C23006E.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 UNDERSCORES ARE SIGNIFICANT IN THE NAMES OF GENERIC
26
-- LIBRARY UNIT SUBPROGRAMS.
27
 
28
-- JBG 5/26/85
29
 
30
GENERIC
31
PROCEDURE C23006E_PROC (X : OUT INTEGER);
32
 
33
PROCEDURE C23006E_PROC (X : OUT INTEGER) IS
34
BEGIN
35
     X := 1;
36
END C23006E_PROC;
37
 
38
GENERIC
39
PROCEDURE C230063PROC (X : OUT INTEGER);
40
 
41
PROCEDURE C230063PROC (X : OUT INTEGER) IS
42
BEGIN
43
     X := 2;
44
END C230063PROC;
45
 
46
GENERIC
47
FUNCTION C23006E_GFUNC RETURN INTEGER;
48
 
49
FUNCTION C23006E_GFUNC RETURN INTEGER IS
50
BEGIN
51
     RETURN 3;
52
END C23006E_GFUNC;
53
 
54
GENERIC
55
FUNCTION C23006EGFUNC RETURN INTEGER;
56
 
57
WITH REPORT; USE REPORT;
58
PRAGMA ELABORATE (REPORT);
59
FUNCTION C23006EGFUNC RETURN INTEGER IS
60
BEGIN
61
     RETURN IDENT_INT(4);
62
END C23006EGFUNC;
63
 
64
WITH C23006E_PROC;
65
PRAGMA ELABORATE (C23006E_PROC);
66
PROCEDURE P1 IS NEW C23006E_PROC;
67
 
68
WITH C23006E_GFUNC;
69
PRAGMA ELABORATE (C23006E_GFUNC);
70
FUNCTION F1 IS NEW C23006E_GFUNC;
71
 
72
WITH P1, F1, C230063PROC, C23006EGFUNC;
73
WITH REPORT; USE REPORT;
74
PROCEDURE C23006E IS
75
 
76
     X1, X2 : INTEGER;
77
     PROCEDURE P2 IS NEW C230063PROC;
78
     FUNCTION F2 IS NEW C23006EGFUNC;
79
 
80
BEGIN
81
     TEST ("C23006E", "CHECK UNDERSCORES ARE SIGNIFICANT " &
82
                      "FOR GENERIC LIBRARY SUBPROGRAM IDENTIFIERS");
83
 
84
     P1 (X1);
85
     P2 (X2);
86
     IF X1 + IDENT_INT(1) /= X2 THEN
87
          FAILED ("INCORRECT PROCEDURE IDENTIFICATION");
88
     END IF;
89
 
90
     IF F1 + IDENT_INT(1) /= F2 THEN
91
          FAILED ("INCORRECT FUNCTION IDENTIFICATION");
92
     END IF;
93
 
94
     RESULT;
95
END C23006E;

powered by: WebSVN 2.1.0

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