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/] [a/] [a83c01h.ada] - Blame information for rev 294

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 294 jeremybenn
-- A83C01H.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 COMPONENT NAMES MAY BE THE SAME AS NAMES OF
26
--    LABELS.
27
 
28
--    RM    24 JUNE 1980
29
--    JRK   10 NOV  1980
30
--    RM    01 JAN  1982
31
 
32
 
33
WITH REPORT;
34
PROCEDURE  A83C01H  IS
35
 
36
     USE REPORT;
37
 
38
BEGIN
39
 
40
     TEST( "A83C01H" , "CHECK THAT COMPONENT NAMES MAY BE THE SAME AS" &
41
                       " NAMES OF LABELS" ) ;
42
 
43
 
44
     -- TEST FOR LABELS
45
 
46
     DECLARE
47
 
48
          TYPE  R1A  IS
49
               RECORD
50
                    LAB3 : INTEGER ;
51
               END RECORD ;
52
 
53
          TYPE  R1  IS
54
               RECORD
55
                    LAB1 : INTEGER ;
56
                    LAB2 : R1A ;
57
               END RECORD ;
58
 
59
          A1 : R1 := ( 1 , ( LAB3 => 5 ) );
60
 
61
     BEGIN
62
 
63
          << LAB1 >>
64
          << LAB2 >>
65
          << LAB3 >>
66
 
67
          A1.LAB1 := A1.LAB2.LAB3 ;
68
 
69
          DECLARE
70
 
71
               TYPE  R1A  IS
72
                    RECORD
73
                         LAB3 : INTEGER ;
74
                         LAB4 : INTEGER ;
75
                    END RECORD ;
76
 
77
               TYPE  R1  IS
78
                    RECORD
79
                         LAB1 : INTEGER ;
80
                         LAB2 : R1A ;
81
                    END RECORD ;
82
 
83
               A1 : R1 := ( 3 , ( 6 , 7 ) );
84
 
85
          BEGIN
86
 
87
               << LAB4 >>
88
 
89
               A1.LAB1 := A1.LAB2.LAB3 + A1.LAB2.LAB4 ;
90
 
91
          END ;
92
 
93
     END ;
94
 
95
 
96
 
97
     RESULT;
98
 
99
END A83C01H;

powered by: WebSVN 2.1.0

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