annotate gcc/testsuite/gfortran.dg/any_all_1.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do run }
kono
parents:
diff changeset
2 ! PR 34817 - the wrong library function was called,
kono
parents:
diff changeset
3 ! leading to garbage in the return value
kono
parents:
diff changeset
4 program main
kono
parents:
diff changeset
5 real, dimension(2,2) :: a
kono
parents:
diff changeset
6 logical(kind=4), dimension(2) :: b
kono
parents:
diff changeset
7 integer(kind=4), dimension(2) :: i
kono
parents:
diff changeset
8 equivalence (b,i)
kono
parents:
diff changeset
9 data a /1.0, 2.0, -0.1, -0.2 /
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 i = 16843009 ! Initialize i to put junk into b
kono
parents:
diff changeset
12 b = any(a>0.5,dim=1)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
13 if (b(2) .or. .not. b(1)) STOP 1
111
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 i = 16843009 ! Initialize i to put junk into b
kono
parents:
diff changeset
16 b = all(a>0.5,dim=1)
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
17 if (b(2) .or. .not. b(1)) STOP 2
111
kono
parents:
diff changeset
18 end program main