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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [a/] [ae3101a.ada] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- AE3101A.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 CREATE, OPEN, CLOSE, DELETE, RESET, MODE, NAME,
27
--     FORM, IS_OPEN, AND END_OF_FILE ARE AVAILABLE FOR TEXT FILES.
28
--     ALSO CHECK THAT FORMAL PARAMETER NAMES ARE CORRECT.
29
 
30
-- HISTORY:
31
--     ABW 08/24/82
32
--     SPS 09/16/82
33
--     SPS 11/09/82
34
--     DWC 09/24/87  REMOVED DEPENDENCE ON FILE SUPPORT.
35
 
36
WITH REPORT;
37
USE REPORT;
38
WITH TEXT_IO;
39
USE TEXT_IO;
40
 
41
PROCEDURE AE3101A IS
42
 
43
     FILE1 : FILE_TYPE;
44
 
45
BEGIN
46
 
47
     TEST ("AE3101A" , "CHECK THAT CREATE, OPEN, DELETE, " &
48
                       "RESET, MODE, NAME, FORM, IS_OPEN, " &
49
                       "AND END_OF_FILE ARE AVAILABLE " &
50
                       "FOR TEXT FILE");
51
 
52
     BEGIN
53
          CREATE (FILE => FILE1,
54
                  MODE => OUT_FILE,
55
                  NAME => LEGAL_FILE_NAME,
56
                  FORM => "");
57
     EXCEPTION
58
          WHEN OTHERS =>
59
               NULL;
60
     END;
61
 
62
     BEGIN
63
          RESET (FILE => FILE1, MODE => IN_FILE);
64
     EXCEPTION
65
          WHEN OTHERS =>
66
               NULL;
67
     END;
68
 
69
     BEGIN
70
          CLOSE (FILE => FILE1);
71
     EXCEPTION
72
          WHEN OTHERS =>
73
               NULL;
74
     END;
75
 
76
     BEGIN
77
          OPEN (FILE => FILE1,
78
                MODE => IN_FILE,
79
                NAME => LEGAL_FILE_NAME,
80
                FORM => "");
81
     EXCEPTION
82
          WHEN OTHERS =>
83
               NULL;
84
     END;
85
 
86
     IF IS_OPEN (FILE => FILE1) THEN
87
          NULL;
88
     END IF;
89
 
90
     BEGIN
91
          IF MODE (FILE => FILE1) /= IN_FILE THEN
92
               NULL;
93
          END IF;
94
     EXCEPTION
95
          WHEN OTHERS =>
96
               NULL;
97
     END;
98
 
99
     BEGIN
100
          IF NAME (FILE => FILE1) /= LEGAL_FILE_NAME THEN
101
               NULL;
102
          END IF;
103
     EXCEPTION
104
          WHEN OTHERS =>
105
               NULL;
106
     END;
107
 
108
     BEGIN
109
          IF FORM (FILE => FILE1) /= "" THEN
110
               NULL;
111
          END IF;
112
     EXCEPTION
113
          WHEN OTHERS =>
114
               NULL;
115
     END;
116
 
117
     BEGIN
118
          IF END_OF_FILE (FILE => FILE1) THEN
119
               NULL;
120
          END IF;
121
     EXCEPTION
122
          WHEN OTHERS =>
123
               NULL;
124
     END;
125
 
126
     BEGIN
127
          DELETE (FILE => FILE1);
128
     EXCEPTION
129
          WHEN OTHERS =>
130
               NULL;
131
     END;
132
 
133
     RESULT;
134
 
135
END AE3101A;

powered by: WebSVN 2.1.0

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