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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [ce/] [ce3404a.ada] - Blame information for rev 720

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 720 jeremybenn
-- CE3404A.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 END_OF_LINE RAISES MODE_ERROR WHEN APPLIED TO
27
--     AN OUT_FILE.
28
 
29
-- HISTORY:
30
--     ABW 08/26/82
31
--     SPS 09/17/82
32
--     TBN 11/04/86  REVISED TEST TO OUTPUT A NON_APPLICABLE
33
--                   RESULT WHEN FILES ARE NOT SUPPORTED.
34
--     GMT 29/28/87  COMPLETELY REVISED.
35
 
36
WITH REPORT;  USE REPORT;
37
WITH TEXT_IO; USE TEXT_IO;
38
 
39
PROCEDURE CE3404A IS
40
 
41
     MY_FILE : FILE_TYPE;
42
     BOOL    : BOOLEAN;
43
 
44
BEGIN
45
 
46
     TEST ("CE3404A", "CHECK THAT END_OF_LINE RAISES MODE_ERROR " &
47
                      "WHEN APPLIED TO AN OUT_FILE");
48
 
49
     BEGIN
50
          BOOL := END_OF_FILE (CURRENT_OUTPUT);
51
          FAILED ("MODE_ERROR NOT RAISED FOR CURRENT_OUTPUT - 1");
52
     EXCEPTION
53
          WHEN MODE_ERROR =>
54
               NULL;
55
          WHEN OTHERS =>
56
               FAILED ("UNEXPECTED EXCEPTION RAISED FOR " &
57
                       "CURRENT_OUTPUT - 2");
58
     END;
59
 
60
     BEGIN
61
          BOOL := END_OF_FILE (STANDARD_OUTPUT);
62
          FAILED ("MODE_ERROR NOT RAISED FOR STANDARD_OUTPUT - 3");
63
     EXCEPTION
64
          WHEN MODE_ERROR =>
65
               NULL;
66
          WHEN OTHERS =>
67
               FAILED ("UNEXPECTED EXCEPTION RAISED FOR " &
68
                       "STANDARD_OUTPUT - 4");
69
     END;
70
 
71
     BEGIN
72
          CREATE (MY_FILE);
73
          BEGIN
74
               BOOL := END_OF_FILE (MY_FILE);
75
               FAILED ("MODE_ERROR NOT RAISED FOR MY_FILE - 5");
76
          EXCEPTION
77
               WHEN MODE_ERROR =>
78
                    NULL;
79
               WHEN OTHERS =>
80
                    FAILED ("UNEXPECTED EXCEPTION RAISED FOR " &
81
                            "MY_FILE - 6");
82
 
83
          END;
84
 
85
          CLOSE (MY_FILE);
86
 
87
     EXCEPTION
88
          WHEN USE_ERROR =>
89
               NULL;
90
     END;
91
 
92
     RESULT;
93
 
94
END CE3404A;

powered by: WebSVN 2.1.0

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