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/] [ce/] [ce3606b.ada] - Blame information for rev 399

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- CE3606B.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 PUT_LINE WILL OUTPUT A LINE ON MORE THAN ONE LINE
27
--     WHEN THE LINE LENGTH IS BOUNDED, IF THE STRING IS GREATER
28
--     THAN THE LINE LENGTH.
29
 
30
-- APPLICABILITY CRITERIA:
31
--     THIS TEST IS APPLICABLE ONLY TO IMPLEMENTATIONS WHICH
32
--     SUPPORT TEMPORARY TEXT FILES.
33
 
34
-- HISTORY:
35
--     SPS 09/02/82
36
--     JBG 02/22/84  CHANGED TO .ADA TEST
37
--     RJW 11/04/86  REVISED TEST TO OUTPUT A NON_APPLICABLE
38
--                   RESULT WHEN FILES ARE NOT SUPPORTED.
39
--     DWC 09/09/87  REMOVED UNNECESSARY CODE AND CORRECTED
40
--                   EXCEPTION HANDLING.
41
 
42
WITH REPORT; USE REPORT;
43
WITH TEXT_IO; USE TEXT_IO;
44
WITH CHECK_FILE;
45
PROCEDURE CE3606B IS
46
     INCOMPLETE : EXCEPTION;
47
 
48
BEGIN
49
 
50
     TEST ("CE3606B", "CHECK THAT PUT_LINE WILL OUTPUT A LINE " &
51
                      "ON MORE THAN ONE LINE WHEN THE LINE " &
52
                      "LENGTH IS BOUNDED, IF THE STRING IS " &
53
                      "GREATER THAN THE LINE LENGTH");
54
 
55
     DECLARE
56
          FT : FILE_TYPE;
57
          LONG_LINE : CONSTANT STRING := "THIS LINE IS A LONG " &
58
               "LINE WHICH WHEN OUTPUT SHOULD SPAN OVER SEVERAL " &
59
               "LINES IN THE OUTPUT FILE";
60
     BEGIN
61
 
62
          BEGIN
63
               CREATE (FT);
64
          EXCEPTION
65
               WHEN USE_ERROR =>
66
                    NOT_APPLICABLE ("USE_ERROR RAISED; TEXT CREATE " &
67
                                    "FOR TEMP FILES WITH OUT_FILE " &
68
                                    "MODE");
69
                    RAISE INCOMPLETE;
70
          END;
71
 
72
          SET_LINE_LENGTH (FT, 10);
73
 
74
          PUT_LINE (FT, LONG_LINE);
75
          PUT_LINE (FT, "AA");
76
 
77
          CHECK_FILE (FT, "THIS LINE #" &
78
                          "IS A LONG #" &
79
                          "LINE WHICH#" &
80
                          " WHEN OUTP#" &
81
                          "UT SHOULD #" &
82
                          "SPAN OVER #" &
83
                          "SEVERAL LI#" &
84
                          "NES IN THE#" &
85
                          " OUTPUT FI#" &
86
                          "LE#" &
87
                          "AA#@%");
88
 
89
          CLOSE (FT);
90
     EXCEPTION
91
          WHEN INCOMPLETE =>
92
               NULL;
93
     END;
94
 
95
     RESULT;
96
 
97
END CE3606B;

powered by: WebSVN 2.1.0

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