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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
-- C2A002A.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 BASED INTEGER LITERALS WITH BASES 2 THROUGH 16 ALL
26
-- YIELD CORRECT VALUES WHEN COLONS ARE USED INSTEAD OF SHARPS.
27
 
28
-- JRK 12/12/79
29
-- JRK 10/27/80
30
-- JBG 5/28/85
31
 
32
WITH REPORT;
33
PROCEDURE C2A002A IS
34
 
35
        USE REPORT;
36
 
37
        I : INTEGER := 200;
38
 
39
BEGIN
40
        TEST ("C2A002A", "VALUES OF BASED INTEGER LITERALS WITH " &
41
                         "COLONS");
42
 
43
        IF 2:11: /= 3 THEN
44
                FAILED ("INCORRECT VALUE FOR BASE 2 INTEGER");
45
        END IF;
46
 
47
        IF 3:22: /= 8 THEN
48
                FAILED ("INCORRECT VALUE FOR BASE 3 INTEGER");
49
        END IF;
50
 
51
        IF 4:33: /= 15 THEN
52
                FAILED ("INCORRECT VALUE FOR BASE 4 INTEGER");
53
        END IF;
54
 
55
        IF 5:44: /= 24 THEN
56
                FAILED ("INCORRECT VALUE FOR BASE 5 INTEGER");
57
        END IF;
58
 
59
        IF 6:55: /= 35 THEN
60
                FAILED ("INCORRECT VALUE FOR BASE 6 INTEGER");
61
        END IF;
62
 
63
        IF 7:66: /= 48 THEN
64
                FAILED ("INCORRECT VALUE FOR BASE 7 INTEGER");
65
        END IF;
66
 
67
        IF 8:77: /= 63 THEN
68
                FAILED ("INCORRECT VALUE FOR BASE 8 INTEGER");
69
        END IF;
70
 
71
        IF 9:88: /= 80 THEN
72
                FAILED ("INCORRECT VALUE FOR BASE 9 INTEGER");
73
        END IF;
74
 
75
        IF 10:99: /= 99 THEN
76
                FAILED ("INCORRECT VALUE FOR BASE 10 INTEGER");
77
        END IF;
78
 
79
        IF 11:AA: /= 120 THEN
80
                FAILED ("INCORRECT VALUE FOR BASE 11 INTEGER");
81
        END IF;
82
 
83
        IF 12:BB: /= 143 THEN
84
                FAILED ("INCORRECT VALUE FOR BASE 12 INTEGER");
85
        END IF;
86
 
87
        IF 13:CC: /= 168 THEN
88
                FAILED ("INCORRECT VALUE FOR BASE 13 INTEGER");
89
        END IF;
90
 
91
        IF 14:DD: /= 195 THEN
92
                FAILED ("INCORRECT VALUE FOR BASE 14 INTEGER");
93
        END IF;
94
 
95
        IF 15:EE: /= 224 THEN
96
                FAILED ("INCORRECT VALUE FOR BASE 15 INTEGER");
97
        END IF;
98
 
99
        IF 16:FF: /= 255 THEN
100
                FAILED ("INCORRECT VALUE FOR BASE 16 INTEGER");
101
        END IF;
102
 
103
        ----------------------------------------
104
 
105
        IF 7:66:E1 /= 336 THEN
106
                FAILED ("INCORRECT VALUE FOR BASE 7 INTEGER " &
107
                        "WITH EXPONENT");
108
        END IF;
109
 
110
        RESULT;
111
END C2A002A;

powered by: WebSVN 2.1.0

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