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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
-- C2A001B.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 FLOATING POINT LITERAL THAT
27
-- USES 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 C2A001B IS
35
 
36
     USE REPORT;
37
 
38
     F1, F2, F3, F4, F5 : FLOAT;
39
 
40
BEGIN
41
     TEST("C2A001B", "UNDERSCORES ALLOWED IN BASED FLOATING POINT " &
42
                     "LITERALS THAT HAVE COLONS");
43
 
44
     F1 := 1.2_5E1;
45
     F2 := 1_6:1.A:;
46
     F3 := 8:1_3.5:;
47
     F4 := 8:2.3_7:;
48
     F5 := 8:3.4:E1_1;
49
 
50
     IF F1 = 1.25E1 AND F2 = 16:1.A: AND F3 = 8:13.5: AND
51
        F4 = 8:2.37: AND F5 = 8:3.4:E11 THEN
52
          NULL;
53
     ELSE
54
          FAILED("UNDERSCORES IN FLOATING POINT LITERALS NOT " &
55
                 "HANDLED CORRECTLY");
56
     END IF;
57
 
58
     RESULT;
59
END C2A001B;

powered by: WebSVN 2.1.0

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