Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / ada / acats / tests / ce / ce2109c.ada
blob9d4f3bb0a39bac7c020506e7c30167e2c085edb1
1 -- CE2109C.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 -- OBJECTIVE:
26 -- CHECK THAT THE DEFAULT MODES IN CREATE ARE SET CORRECTLY FOR
27 -- TEXT_IO.
29 -- APPLICABILITY CRITERIA:
30 -- THIS TEST IS ONLY APPLICABLE TO IMPLEMENTATIONS WHICH SUPPORT
31 -- CREATE WITH OUT_FILE MODE FOR TEXT FILES.
33 -- HISTORY:
34 -- TBN 02/13/86
35 -- TBN 11/04/86 REVISED TEST TO OUTPUT A NON_APPLICABLE
36 -- RESULT WHEN FILES ARE NOT SUPPORTED.
37 -- DWC 08/12/87 CHANGED NOT_APPLICABLE MESSAGE, REMOVED
38 -- NAME_ERROR, AND CLOSED THE FILE.
40 WITH REPORT; USE REPORT;
41 WITH TEXT_IO; USE TEXT_IO;
43 PROCEDURE CE2109C IS
45 INCOMPLETE : EXCEPTION;
46 FILE1 : TEXT_IO.FILE_TYPE;
48 BEGIN
50 TEST( "CE2109C", "CHECK DEFAULT MODE IN CREATE FOR TEXT_IO");
52 BEGIN
53 CREATE (FILE1);
54 EXCEPTION
55 WHEN USE_ERROR =>
56 NOT_APPLICABLE ("CREATE OF TEXT FILE WITH OUT_FILE" &
57 "MODE NOT SUPPORTED");
58 RAISE INCOMPLETE;
59 WHEN OTHERS =>
60 FAILED ("UNEXPECTED EXCEPTION RAISED; TEXT CREATE");
61 RAISE INCOMPLETE;
62 END;
64 IF MODE (FILE1) /= OUT_FILE THEN
65 FAILED( "MODE INCORRECTLY SET FOR TEXT_IO" );
66 END IF;
68 CLOSE (FILE1);
70 RESULT;
72 EXCEPTION
73 WHEN INCOMPLETE =>
74 RESULT;
76 END CE2109C;