1 # DP: 2004-09-21 Bud Davis <bdavis9659@comcast.net>
4 # DP: * bld.c (ffebld_constant_new_real2_val): Fix typo,
7 # DP: * g77.f-torture/execute/pr17541.f: New test.
10 ===================================================================
11 RCS file: /cvs/gcc/gcc/gcc/f/Attic/bld.c,v
12 retrieving revision 1.16.14.1
13 retrieving revision 1.16.14.2
14 diff -u -r1.16.14.1 -r1.16.14.2
15 --- gcc/gcc/f/bld.c 12 Jul 2004 17:58:36 -0000 1.16.14.1
16 +++ gcc/gcc/f/bld.c 21 Sep 2004 12:54:27 -0000 1.16.14.2
18 nc = malloc_new_kp (ffebld_constant_pool(),
21 - nc->consttype = FFEBLD_constREAL1;
22 + nc->consttype = FFEBLD_constREAL2;
24 nc->hook = FFECOM_constantNULL;
26 Index: gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f
27 ===================================================================
28 RCS file: gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f
29 diff -N gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f
30 --- /dev/null 1 Jan 1970 00:00:00 -0000
31 +++ gcc/gcc/testsuite/g77.f-torture/execute/pr17541.f 21 Sep 2004 12:54:35 -0000 1.1.2.1
35 +! check all types of data statements
38 + double precision s(2)
55 + data iw / 4,3560000 /
56 + data id / 8,Z'ABCDEF01',Z'5555AAAA' /
58 + data b / 'xyz','abc'/
59 + data c1 /(1.0,2.0),(-1.0,-2.0)/
60 + data c2 /(1.d0,2.d0),(-1.d0,-2.d0)/
61 + data lb / .TRUE.,.FALSE. /
62 + data lh / .TRUE.,.FALSE. /
63 + data lw / .TRUE.,.FALSE. /
64 + data ld / .TRUE.,.FALSE. /
67 +! check the reals first
68 + if (r(1).ne.1.0) then
70 + print*,r(1), ' should be 1.0 '
75 + if (r(2).ne.2.0) then
77 + print*,r(2), ' should be 2.0 '
82 + if (s(1).ne.2.d0) then
84 + print*,s(1), ' xxshould be 2.d0 '
89 + if (s(2).ne.1.d0) then
91 + print*,s(2), ' should be 1.d0 '
97 + if (ib(1).ne.1) then
99 + print*,ib(1), ' should be 1 '
104 + if (ib(2).ne.-1) then
106 + print*,ib(2), ' should be -1 '
111 + if (ih(1).ne.2) then
113 + print*,ih(2), ' should be 2 '
118 + if (ih(2).ne.100) then
120 + print*,ih(2), ' should be 100 '
125 + if (iw(1).ne.4) then
127 + print*,iw(1), ' should be 4 '
132 + if (iw(2).ne.3560000) then
134 + print*,iw(2), ' should be 3560000 '
139 + if (id(1).ne.8) then
140 + if (dbug) print*,id(1), ' should be 8 '
143 + if (id(2).ne.Z'ABCDEF01') then
144 + if (dbug) print*,id(2), " should be Z'ABCDEF01' "
147 + if (id(3).ne.Z'5555AAAA') then
148 + if (dbug) print*,id(2), " should be Z'5555AAAA' "
152 + if (c1(1).ne.(1.0,2.0)) then
154 + print*,c1(1), ' should be (1.0,2.0) '
159 + if (c1(2).ne.(-1.0,-2.0)) then
161 + print*,c1(2), ' should be (-1.0,-2.0) '
166 + if (c2(1).ne.(1.d0,2.d0)) then
168 + print*,c2(1), ' should be (1.0,2.0) '
173 + if (c2(2).ne.(-1.d0,-2.d0)) then
175 + print*,c2(2), ' should be (-1.0,-2.0) '
181 + if (a(1).ne.'a') then
183 + print*,a(1), ' should be a '
188 + if (b(1).ne.'xyz') then
190 + print*,b(1), ' should be xyz '
196 + if (.NOT.lb(1)) then
197 + if (dbug) print*,lb(1), ' should be .T. '
201 + if (dbug) print*,lb(2), ' should be .F. '
204 + if (.NOT.lh(1)) then
205 + if (dbug) print*,lh(1), ' should be .T. '
209 + if (dbug) print*,lh(2), ' should be .F. '
212 + if (.NOT.lw(1)) then
213 + if (dbug) print*,lw(1), ' should be .T. '
217 + if (dbug) print*,lw(2), ' should be .F. '
220 + if (.NOT.ld(1)) then
222 + print*,ld(1), ' should be .T. '
229 + print*,ld(2), ' should be .F. '