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/] [ae2113a.ada] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- AE2113A.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
-- CHECK THAT THE SUBPROGRAMS CREATE, OPEN, CLOSE, DELETE, RESET, MODE,
26
-- NAME, FORM, AND IS_OPEN ARE AVAILABLE FOR DIRECT_IO AND THAT
27
-- SUBPROGRAMS HAVE THE CORRECT FORMAL PARAMETER NAMES.
28
 
29
-- TBN  9/30/86
30
 
31
WITH DIRECT_IO;
32
WITH REPORT; USE REPORT;
33
PROCEDURE AE2113A IS
34
 
35
     PACKAGE DIR_IO IS NEW DIRECT_IO (INTEGER);
36
     USE DIR_IO;
37
 
38
     TEMP : FILE_TYPE;
39
 
40
BEGIN
41
     TEST ("AE2113A", "CHECK THAT THE SUBPROGRAMS CREATE, OPEN, " &
42
                      "CLOSE, DELETE, RESET, MODE, NAME, FORM, AND " &
43
                      "IS_OPEN ARE AVAILABLE FOR DIRECT_IO AND THAT " &
44
                      "SUBPROGRAMS HAVE THE CORRECT FORMAL PARAMETER " &
45
                      "NAMES");
46
     BEGIN
47
          CREATE (FILE=> TEMP, MODE=> OUT_FILE,
48
                  NAME=> "AE2113A.DAT", FORM=> "");
49
     EXCEPTION
50
          WHEN OTHERS =>
51
               NULL;
52
     END;
53
 
54
     BEGIN
55
          RESET (FILE=> TEMP, MODE=> OUT_FILE);
56
     EXCEPTION
57
          WHEN OTHERS =>
58
               NULL;
59
     END;
60
 
61
     BEGIN
62
          CLOSE (FILE=> TEMP);
63
     EXCEPTION
64
          WHEN OTHERS =>
65
               NULL;
66
     END;
67
 
68
     BEGIN
69
          OPEN (FILE=> TEMP, MODE=> OUT_FILE,
70
                  NAME=> "AE2113A.DAT", FORM=> "");
71
     EXCEPTION
72
          WHEN OTHERS =>
73
               NULL;
74
     END;
75
 
76
     BEGIN
77
          IF IS_OPEN (FILE=> TEMP) THEN
78
               NULL;
79
          END IF;
80
     EXCEPTION
81
          WHEN OTHERS =>
82
               NULL;
83
     END;
84
 
85
     BEGIN
86
          IF MODE (FILE=> TEMP) /= OUT_FILE THEN
87
               NULL;
88
          END IF;
89
     EXCEPTION
90
          WHEN OTHERS =>
91
               NULL;
92
     END;
93
 
94
     BEGIN
95
          IF NAME (FILE=> TEMP) /= "AE2113A.DAT" THEN
96
               NULL;
97
          END IF;
98
     EXCEPTION
99
          WHEN OTHERS =>
100
               NULL;
101
     END;
102
 
103
     BEGIN
104
          IF FORM (FILE=> TEMP) /= "" THEN
105
               NULL;
106
          END IF;
107
     EXCEPTION
108
          WHEN OTHERS =>
109
               NULL;
110
     END;
111
 
112
     BEGIN
113
          DELETE (FILE=> TEMP);
114
     EXCEPTION
115
          WHEN OTHERS =>
116
               NULL;
117
     END;
118
 
119
     RESULT;
120
END AE2113A;

powered by: WebSVN 2.1.0

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