2 ! { dg-options "-ffrontend-optimize -fdump-tree-original" }
3 ! PR 55806 - replace ANY intrinsic for array
4 ! constructor with .or.
9 subroutine bar(a
,b
,c
, lo
)
10 real, dimension(3,3), intent(in
) :: a
,b
11 logical, dimension(3,3), intent(in
) :: lo
12 integer, intent(out
) :: c
13 real, parameter :: acc
= 1e-4
18 if (any([abs(a(i
,1) - b(i
,1)) > acc
, &
19 (j
==i
+1,j
=3,8)])) cycle
20 if (any([abs(a(i
,2) - b(i
,2)) > acc
, &
21 abs(a(i
,3) - b(i
,3)) > acc
, lo(i
,:)])) cycle
26 subroutine baz(a
, b
, c
)
27 real, dimension(3,3), intent(in
) :: a
,b
28 real, intent(out
) :: c
29 c
= sum([a(1,1),a(2,2),a(3,3),b(:,1)])
36 real, dimension(3,3) :: a
,b
40 data a
/1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9/
49 if (abs(res
- 8.1) > 1e-5) STOP 2
51 ! { dg-final { scan-tree-dump-times "while" 5 "original" } }