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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [e/] [e28002b.ada] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
-- E28002B.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 A PREDEFINED OR AN UNRECOGNIZED PRAGMA MAY HAVE
27
--     ARGUMENTS INVOLVING OVERLOADED IDENTIFIERS WITHOUT ENOUGH
28
--     CONTEXTUAL INFORMATION TO RESOLVE THE OVERLOADING.
29
 
30
-- PASS/FAIL CRITERIA:
31
--     THIS TEST IS PASSED IF IT REPORTS "TENTATIVELY PASSED" AND
32
--     THE STARRED COMMENT DOES NOT APPEAR IN THE LISTING.
33
 
34
--     AN IMPLEMENTATION FAILS THIS TEST IF THE STARRED COMMENT
35
--     LINE APPEARS IN THE COMPILATION LISTING.
36
 
37
-- HISTORY:
38
--     TBN 02/24/86  CREATED ORIGINAL TEST.
39
--     JET 01/13/88  ADDED CALLS TO SPECIAL_ACTION AND UPDATED HEADER.
40
--     EDS 10/28/97  ADDED DECLARATIONS FOR PROCEDURES XYZ.
41
 
42
WITH REPORT, SYSTEM; USE REPORT, SYSTEM;
43
PROCEDURE E28002B IS
44
 
45
     FUNCTION OFF RETURN INTEGER IS
46
     BEGIN
47
          RETURN 1;
48
     END OFF;
49
 
50
     FUNCTION OFF RETURN BOOLEAN IS
51
     BEGIN
52
          RETURN TRUE;
53
     END OFF;
54
 
55
     PRAGMA LIST (OFF);
56
--***** THIS LINE MUST NOT APPEAR IN COMPILATION LISTING.
57
     PRAGMA LIST (ON);
58
 
59
     FUNCTION ELABORATION_CHECK RETURN INTEGER IS
60
     BEGIN
61
          RETURN 1;
62
     END ELABORATION_CHECK;
63
 
64
     FUNCTION ELABORATION_CHECK RETURN BOOLEAN IS
65
     BEGIN
66
          RETURN TRUE;
67
     END ELABORATION_CHECK;
68
 
69
     PRAGMA SUPPRESS (ELABORATION_CHECK, ELABORATION_CHECK);
70
 
71
     FUNCTION TIME RETURN INTEGER IS
72
     BEGIN
73
          RETURN 1;
74
     END TIME;
75
 
76
     FUNCTION TIME RETURN BOOLEAN IS
77
     BEGIN
78
          RETURN TRUE;
79
     END TIME;
80
 
81
     PRAGMA OPTIMIZE (TIME);
82
 
83
     PROCEDURE XYZ;
84
     PROCEDURE XYZ (COUNT : INTEGER);
85
 
86
     PRAGMA INLINE (XYZ);
87
     PRAGMA PHIL_BRASHEAR (XYZ);
88
 
89
     PROCEDURE XYZ IS
90
     BEGIN
91
          NULL;
92
     END XYZ;
93
 
94
     PROCEDURE XYZ (COUNT : INTEGER) IS
95
     BEGIN
96
          NULL;
97
     END XYZ;
98
 
99
BEGIN
100
     TEST ("E28002B", "CHECK THAT A PREDEFINED OR AN UNRECOGNIZED " &
101
                      "PRAGMA MAY HAVE ARGUMENTS INVOLVING " &
102
                      "OVERLOADED IDENTIFIERS WITHOUT ENOUGH " &
103
                      "CONTEXTUAL INFORMATION TO RESOLVE THE " &
104
                      "OVERLOADING");
105
 
106
     SPECIAL_ACTION ("CHECK THAT THE COMPILATION LISTING DOES NOT " &
107
                     "SHOW THE STARRED COMMENT LINE");
108
 
109
     RESULT;
110
 
111
END E28002B;

powered by: WebSVN 2.1.0

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