annotate gcc/testsuite/ada/acats/tests/cz/cz1102a.ada @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 -- CZ1102A.ADA
kono
parents:
diff changeset
2 --
kono
parents:
diff changeset
3 -- Grant of Unlimited Rights
kono
parents:
diff changeset
4 --
kono
parents:
diff changeset
5 -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
kono
parents:
diff changeset
6 -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
kono
parents:
diff changeset
7 -- unlimited rights in the software and documentation contained herein.
kono
parents:
diff changeset
8 -- Unlimited rights are defined in DFAR 252.227-7013(a)(19). By making
kono
parents:
diff changeset
9 -- this public release, the Government intends to confer upon all
kono
parents:
diff changeset
10 -- recipients unlimited rights equal to those held by the Government.
kono
parents:
diff changeset
11 -- These rights include rights to use, duplicate, release or disclose the
kono
parents:
diff changeset
12 -- released technical data and computer software in whole or in part, in
kono
parents:
diff changeset
13 -- any manner and for any purpose whatsoever, and to have or permit others
kono
parents:
diff changeset
14 -- to do so.
kono
parents:
diff changeset
15 --
kono
parents:
diff changeset
16 -- DISCLAIMER
kono
parents:
diff changeset
17 --
kono
parents:
diff changeset
18 -- ALL MATERIALS OR INFORMATION HEREIN RELEASED, MADE AVAILABLE OR
kono
parents:
diff changeset
19 -- DISCLOSED ARE AS IS. THE GOVERNMENT MAKES NO EXPRESS OR IMPLIED
kono
parents:
diff changeset
20 -- WARRANTY AS TO ANY MATTER WHATSOEVER, INCLUDING THE CONDITIONS OF THE
kono
parents:
diff changeset
21 -- SOFTWARE, DOCUMENTATION OR OTHER INFORMATION RELEASED, MADE AVAILABLE
kono
parents:
diff changeset
22 -- OR DISCLOSED, OR THE OWNERSHIP, MERCHANTABILITY, OR FITNESS FOR A
kono
parents:
diff changeset
23 -- PARTICULAR PURPOSE OF SAID MATERIAL.
kono
parents:
diff changeset
24 --*
kono
parents:
diff changeset
25 --
kono
parents:
diff changeset
26 -- CHECK THAT THE DYNAMIC VALUE ROUTINES OF THE REPORT PACKAGE WORK
kono
parents:
diff changeset
27 -- CORRECTLY.
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 -- JRK 8/7/81
kono
parents:
diff changeset
30 -- JRK 10/27/82
kono
parents:
diff changeset
31 -- RLB 03/20/00 - Added checks for Integer'First and Integer'Last.
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 WITH REPORT;
kono
parents:
diff changeset
34 USE REPORT;
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 PROCEDURE CZ1102A IS
kono
parents:
diff changeset
37
kono
parents:
diff changeset
38 BEGIN
kono
parents:
diff changeset
39
kono
parents:
diff changeset
40 TEST ("CZ1102A", "CHECK THAT THE DYNAMIC VALUE ROUTINES OF " &
kono
parents:
diff changeset
41 "THE REPORT PACKAGE WORK CORRECTLY");
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 IF NOT EQUAL (0, 0) OR
kono
parents:
diff changeset
44 EQUAL (0, 1) OR
kono
parents:
diff changeset
45 NOT EQUAL (1, 1) OR
kono
parents:
diff changeset
46 NOT EQUAL (3, 3) OR
kono
parents:
diff changeset
47 NOT EQUAL (4, 4) OR
kono
parents:
diff changeset
48 NOT EQUAL (-1, -1) OR
kono
parents:
diff changeset
49 NOT EQUAL (INTEGER'FIRST, INTEGER'FIRST) OR
kono
parents:
diff changeset
50 NOT EQUAL (INTEGER'LAST, INTEGER'LAST) OR
kono
parents:
diff changeset
51 EQUAL (-1, 0) THEN
kono
parents:
diff changeset
52 FAILED ("'EQUAL' NOT WORKING");
kono
parents:
diff changeset
53 END IF;
kono
parents:
diff changeset
54
kono
parents:
diff changeset
55 IF IDENT_INT (5) /= 5 THEN
kono
parents:
diff changeset
56 FAILED ("'IDENT_INT' NOT WORKING");
kono
parents:
diff changeset
57 END IF;
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 IF IDENT_CHAR ('E') /= 'E' THEN
kono
parents:
diff changeset
60 FAILED ("'IDENT_CHAR' NOT WORKING");
kono
parents:
diff changeset
61 END IF;
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 IF IDENT_BOOL (TRUE) /= TRUE THEN
kono
parents:
diff changeset
64 FAILED ("'IDENT_BOOL' NOT WORKING");
kono
parents:
diff changeset
65 END IF;
kono
parents:
diff changeset
66
kono
parents:
diff changeset
67 IF IDENT_STR ("") /= "" OR
kono
parents:
diff changeset
68 IDENT_STR ("K") /= "K" OR
kono
parents:
diff changeset
69 IDENT_STR ("PQRS") /= "PQRS" THEN
kono
parents:
diff changeset
70 FAILED ("'IDENT_STR' NOT WORKING");
kono
parents:
diff changeset
71 END IF;
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 RESULT;
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 END CZ1102A;