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

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

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

powered by: WebSVN 2.1.0

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