3 -- Grant of Unlimited Rights
5 -- The Ada Conformity Assessment Authority (ACAA) holds unlimited
6 -- rights in the software and documentation contained herein. Unlimited
7 -- rights are the same as those granted by the U.S. Government for older
8 -- parts of the Ada Conformity Assessment Test Suite, and are defined
9 -- in DFAR 252.227-7013(a)(19). By making this public release, the ACAA
10 -- intends to confer upon all recipients unlimited rights equal to those
11 -- held by the ACAA. These rights include rights to use, duplicate,
12 -- release or disclose the released technical data and computer software
13 -- in whole or in part, in any manner and for any purpose whatsoever, and
14 -- to have or permit others to do so.
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
19 -- DISCLOSED ARE AS IS. THE ACAA 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.
27 -- Check that checks are made properly when a per-object expression contains
28 -- an attribute whose prefix denotes the current instance of the type.
29 -- (Defect Report 8652/0002, as reflected in Technical Corrigendum 1,
33 -- 9 FEB 2001 PHL Initial version.
34 -- 29 JUN 2002 RLB Readied for release.
43 type Negative
is range Integer'First .. -1;
47 C
: Negative
:= Negative
(Ident_Int
(R1
'Size));
53 type R3
(D1
: access R2
; D2
: Natural) is limited null record;
57 C
: R3
(R2
'Access, Ident_Int
(-1));
61 Test
("C380001", "Check that checks are made properly when a " &
62 "per-object expression contains an attribute whose " &
63 "prefix denotes the current instance of the type");
69 ("No exception raised when evaluating a per-object expression " &
70 "containing an attribute - 1");
73 when Constraint_Error
=>
76 Failed
("Exception " & Exception_Name
(E
) &
77 " raised - " & Exception_Information
(E
) & " - 1");
85 Failed
("No exception raised when evaluating a per-object expression " &
86 "containing an attribute - 2");
88 when Constraint_Error
=>
91 Failed
("Exception " & Exception_Name
(E
) &
92 " raised - " & Exception_Information
(E
) & " - 2");
100 ("No exception raised when elaborating a per-object constraint " &
101 "containing an attribute - 3");
104 when Constraint_Error
=>
107 Failed
("Exception " & Exception_Name
(E
) &
108 " raised - " & Exception_Information
(E
) & " - 3");
117 ("No exception raised when evaluating a per-object constraint " &
118 "containing an attribute - 4");
120 when Constraint_Error
=>
123 Failed
("Exception " & Exception_Name
(E
) &
124 " raised - " & Exception_Information
(E
) & " - 4");