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/] [c9/] [c91007a.ada] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
-- C91007A.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
--     IF THE ELABORATION OF AN ENTRY DECLARATION RAISES
27
--     "CONSTRAINT_ERROR", THEN NO TASKS ARE ACTIVATED, AND
28
--     "TASKING_ERROR" IS NOT RAISED.
29
 
30
-- HISTORY:
31
--     LDC 06/17/88  CREATED ORGINAL TEST
32
 
33
WITH REPORT;
34
USE REPORT;
35
 
36
PROCEDURE C91007A IS
37
 
38
     TYPE ENUM IS (TERESA, BRIAN, PHIL, JOLEEN, LYNN, DOUG, JODIE,
39
                   VINCE, TOM, DAVE, JOHN, ROSA);
40
     SUBTYPE ENUM_SUB IS ENUM RANGE BRIAN..LYNN;
41
 
42
BEGIN
43
     TEST("C91007A","IF THE ELABORATION OF AN ENTRY DECLARATION " &
44
                    "RAISES 'CONSTRAINT_ERROR', THEN NO TASKS ARE " &
45
                    "ACTIVATED, AND 'TASKING_ERROR' IS NOT RAISED");
46
 
47
     BEGIN
48
          DECLARE
49
               TASK TYPE TSK1;
50
               T1 : TSK1;
51
               TASK BODY TSK1 IS
52
               BEGIN
53
                    FAILED("TSK1 WAS ACTIVATED");
54
               END TSK1;
55
 
56
 
57
               TASK TSK2 IS
58
                    ENTRY ENT(ENUM_SUB RANGE TERESA..LYNN);
59
               END TSK2;
60
 
61
               TASK BODY TSK2 IS
62
               BEGIN
63
                    FAILED("TASK BODY WAS ACTIVATED");
64
               END TSK2;
65
 
66
               TASK TSK3;
67
               TASK BODY TSK3 IS
68
               BEGIN
69
                    FAILED("TSK3 WAS ACTIVATED");
70
               END TSK3;
71
 
72
          BEGIN
73
               NULL;
74
          EXCEPTION
75
               WHEN CONSTRAINT_ERROR =>
76
                    FAILED("CONSTRAINT_ERROR WAS RAISED IN THE " &
77
                           "BEGIN BLOCK");
78
               WHEN TASKING_ERROR =>
79
                    FAILED("TASKING_ERROR WAS RAISED INSTEAD OF " &
80
                           "CONSTRAINT_ERROR IN THE BEGIN BLOCK");
81
               WHEN OTHERS =>
82
                    FAILED("OTHER EXCEPTION WAS RAISED IN " &
83
                           "THE BEGIN BLOCK");
84
          END;
85
     EXCEPTION
86
          WHEN CONSTRAINT_ERROR =>
87
               NULL;
88
          WHEN TASKING_ERROR =>
89
               FAILED("TASKING_ERROR WAS RAISED INSTEAD OF " &
90
                      "CONSTRAINT_ERROR");
91
          WHEN OTHERS =>
92
               FAILED("WRONG EXCEPTION WAS RAISED");
93
     END;
94
 
95
     RESULT;
96
 
97
END C91007A;

powered by: WebSVN 2.1.0

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