OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [ada/] [acats/] [tests/] [c2/] [c2a001c.ada] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- C2A001C.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 NON-CONSECUTIVE UNDERSCORES ARE PERMITTED
26
-- IN EVERY PART OF A BASED FIXED POINT LITERAL THAT USES
27
-- COLONS INSTEAD OF SHARPS.
28
 
29
-- DCB 04/22/80
30
-- JRK 10/27/80
31
-- JBG 5/28/85
32
 
33
WITH REPORT;
34
PROCEDURE C2A001C IS
35
 
36
     USE REPORT;
37
 
38
     TYPE FIXED1 IS DELTA 2.0**(-6) RANGE 0.0 .. 10.0;
39
     TYPE FIXED2 IS DELTA 2.0**(-4) RANGE 0.0 .. 100.0;
40
 
41
     F2, F4 : FIXED1;
42
     F1, F3, F5 : FIXED2;
43
 
44
BEGIN
45
     TEST("C2A001C", "UNDERSCORES ALLOWED IN BASED FIXED POINT " &
46
                     "LITERALS THAT USE COLONS");
47
 
48
     F1 := 1.2_5E1;
49
     F2 := 1_6:1.A:;
50
     F3 := 8:1_3.5:;
51
     F4 := 8:2.3_7:;
52
     F5 := 8:3.4:E0_1;
53
 
54
     IF F1 = 1.25E1 AND F2 = 16:1.A: AND F3 = 8:13.5: AND
55
        F4 = 8:2.37: AND F5 = 8:3.4:E01 THEN
56
          NULL;
57
     ELSE
58
          FAILED("UNDERSCORES IN FIXED POINT LITERALS NOT " &
59
                 "HANDLED CORRECTLY");
60
     END IF;
61
 
62
     RESULT;
63
END C2A001C;

powered by: WebSVN 2.1.0

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