Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / ada / acats / tests / a / ae2113a.ada
blob4630d39c7feaf90a3ee418f526dbd27c67f006d8
1 -- AE2113A.ADA
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.
16 -- DISCLAIMER
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.
29 -- TBN 9/30/86
31 WITH DIRECT_IO;
32 WITH REPORT; USE REPORT;
33 PROCEDURE AE2113A IS
35 PACKAGE DIR_IO IS NEW DIRECT_IO (INTEGER);
36 USE DIR_IO;
38 TEMP : FILE_TYPE;
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;
54 BEGIN
55 RESET (FILE=> TEMP, MODE=> OUT_FILE);
56 EXCEPTION
57 WHEN OTHERS =>
58 NULL;
59 END;
61 BEGIN
62 CLOSE (FILE=> TEMP);
63 EXCEPTION
64 WHEN OTHERS =>
65 NULL;
66 END;
68 BEGIN
69 OPEN (FILE=> TEMP, MODE=> OUT_FILE,
70 NAME=> "AE2113A.DAT", FORM=> "");
71 EXCEPTION
72 WHEN OTHERS =>
73 NULL;
74 END;
76 BEGIN
77 IF IS_OPEN (FILE=> TEMP) THEN
78 NULL;
79 END IF;
80 EXCEPTION
81 WHEN OTHERS =>
82 NULL;
83 END;
85 BEGIN
86 IF MODE (FILE=> TEMP) /= OUT_FILE THEN
87 NULL;
88 END IF;
89 EXCEPTION
90 WHEN OTHERS =>
91 NULL;
92 END;
94 BEGIN
95 IF NAME (FILE=> TEMP) /= "AE2113A.DAT" THEN
96 NULL;
97 END IF;
98 EXCEPTION
99 WHEN OTHERS =>
100 NULL;
101 END;
103 BEGIN
104 IF FORM (FILE=> TEMP) /= "" THEN
105 NULL;
106 END IF;
107 EXCEPTION
108 WHEN OTHERS =>
109 NULL;
110 END;
112 BEGIN
113 DELETE (FILE=> TEMP);
114 EXCEPTION
115 WHEN OTHERS =>
116 NULL;
117 END;
119 RESULT;
120 END AE2113A;