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/] [cd/] [cd1c03e.tst] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
-- CD1C03E.TST
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 STORAGE SIZE OF A DERIVED TASK TYPE IS
27
--     INHERITED FROM THE PARENT IF THE STORAGE SIZE OF THE
28
--     PARENT WAS DETERMINED BY A TASK STORAGE SIZE CLAUSE.
29
 
30
-- MACRO SUBSTITUTION:
31
--     $TASK_STORAGE_SIZE IS THE NUMBER OF STORAGE_UNITS REQUIRED FOR
32
--     THE ACTIVATION OF A TASK.
33
 
34
-- HISTORY:
35
--     JET 09/16/87  CREATED ORIGINAL TEST.
36
--     DHH 03/30/89  CHANGED SPECIFIED_SIZE TO A MACRO VALUE AND CHANGED
37
--                   EXTENSION FROM '.DEP' TO '.TST'.
38
 
39
WITH REPORT; USE REPORT;
40
PROCEDURE CD1C03E IS
41
 
42
     SPECIFIED_SIZE : CONSTANT := $TASK_STORAGE_SIZE;
43
 
44
     TASK TYPE PARENT_TYPE IS
45
          ENTRY E;
46
     END PARENT_TYPE;
47
 
48
     FOR PARENT_TYPE'STORAGE_SIZE USE SPECIFIED_SIZE;
49
 
50
     TYPE DERIVED_TYPE IS NEW PARENT_TYPE;
51
 
52
     TASK BODY PARENT_TYPE IS
53
     BEGIN
54
          ACCEPT E DO
55
               COMMENT ("ENTRY E ACCEPTED");
56
          END E;
57
     END PARENT_TYPE;
58
 
59
BEGIN
60
 
61
     TEST("CD1C03E", "CHECK THAT THE STORAGE SIZE OF A DERIVED " &
62
                     "TASK TYPE IS INHERITED FROM THE PARENT IF " &
63
                     "THE STORAGE SIZE OF THE PARENT WAS " &
64
                     "DETERMINED BY A TASK STORAGE SIZE CLAUSE");
65
 
66
     IF PARENT_TYPE'STORAGE_SIZE < IDENT_INT (SPECIFIED_SIZE) THEN
67
          FAILED ("PARENT_TYPE'STORAGE_SIZE SHOULD NOT BE LESS THAN" &
68
                  INTEGER'IMAGE(SPECIFIED_SIZE) &
69
                  ".  ACTUAL SIZE IS" &
70
                  INTEGER'IMAGE(PARENT_TYPE'STORAGE_SIZE));
71
     END IF;
72
 
73
     IF DERIVED_TYPE'STORAGE_SIZE < IDENT_INT (SPECIFIED_SIZE) THEN
74
          FAILED ("DERIVED_TYPE'STORAGE_SIZE SHOULD NOT BE LESS THAN " &
75
                  INTEGER'IMAGE(SPECIFIED_SIZE) &
76
                  ".  ACTUAL SIZE IS" &
77
                  INTEGER'IMAGE(DERIVED_TYPE'STORAGE_SIZE));
78
     END IF;
79
 
80
     RESULT;
81
 
82
END CD1C03E;

powered by: WebSVN 2.1.0

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