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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [c2/] [c23003a.tst] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
-- C23003A.TST
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 VARIABLE IDENTIFIERS CAN BE AS LONG AS THE MAXIMUM LENGTH
26
-- IDENTIFIER PERMITTED AND THAT ALL CHARACTERS ARE SIGNIFICANT.
27
 
28
-- JRK 12/12/79
29
-- JRK 1/11/80
30
-- JWC 6/28/85   RENAMED TO -AB
31
-- KAS 12/04/95 CHANGED "INPUT LINE LENGTH" TO "LENGTH IDENTIFIER"
32
 
33
WITH REPORT;
34
PROCEDURE C23003A IS
35
 
36
        USE REPORT;
37
 
38
BEGIN
39
        TEST ("C23003A", "MAXIMUM LENGTH VARIABLE IDENTIFIERS");
40
 
41
        -- BIG_ID1 AND BIG_ID2 ARE TWO MAXIMUM LENGTH IDENTIFIERS THAT
42
        -- DIFFER ONLY IN THEIR LAST CHARACTER.
43
 
44
        DECLARE
45
$BIG_ID1
46
                                        -- BIG_ID1
47
                        : INTEGER := 1;
48
        BEGIN
49
                DECLARE
50
$BIG_ID2
51
                                                -- BIG_ID2
52
                                : INTEGER := 2;
53
                BEGIN
54
 
55
                        IF
56
$BIG_ID1
57
                                                -- BIG_ID1
58
                                +
59
$BIG_ID2
60
                                                -- BIG_ID2
61
                                        /= 3 THEN
62
                                FAILED ("IDENTIFIERS AS LONG AS " &
63
                                        "MAXIMUM INPUT LINE LENGTH " &
64
                                        "NOT PERMITTED OR NOT " &
65
                                        "DISTINGUISHED BY DISTINCT " &
66
                                        "SUFFIXES");
67
                        END IF;
68
 
69
                END;
70
        END;
71
 
72
        -- BIG_ID3 AND BIG_ID4 ARE TWO MAXIMUM LENGTH IDENTIFIERS THAT
73
        -- DIFFER ONLY IN THEIR MIDDLE CHARACTER.
74
 
75
        DECLARE
76
$BIG_ID3
77
                                        -- BIG_ID3
78
                        : INTEGER := 3;
79
        BEGIN
80
                DECLARE
81
$BIG_ID4
82
                                                -- BIG_ID4
83
                                : INTEGER := 4;
84
                BEGIN
85
 
86
                        IF
87
$BIG_ID3
88
                                                -- BIG_ID3
89
                                +
90
$BIG_ID4
91
                                                -- BIG_ID4
92
                                        /= 7 THEN
93
                                FAILED ("IDENTIFIERS AS LONG AS " &
94
                                        "MAXIMUM INPUT LINE LENGTH " &
95
                                        "NOT PERMITTED OR NOT " &
96
                                        "DISTINGUISHED BY DISTINCT " &
97
                                        "MIDDLES");
98
                        END IF;
99
 
100
                END;
101
        END;
102
 
103
        RESULT;
104
END C23003A;

powered by: WebSVN 2.1.0

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