annotate gcc/testsuite/gfortran.dg/any_all_2.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +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 compile }
kono
parents:
diff changeset
2 ! PR 34838 - this failed with "Can't convert LOGICAL(1) to LOGICAL(1)
kono
parents:
diff changeset
3 ! Test case contributed by Manfred Schwab.
kono
parents:
diff changeset
4 program main
kono
parents:
diff changeset
5 Logical(kind=1) :: bmp(1),bmpv(1)
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 bmp(1)=.false.
kono
parents:
diff changeset
8 bmpv(1)=.true.
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 if ( ANY(bmp(1:1) .NEQV. bmpv(1:1)) ) then
kono
parents:
diff changeset
11 print*,"hello"
kono
parents:
diff changeset
12 end if
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 if ( ALL(bmp(1:1) .NEQV. bmpv(1:1)) ) then
kono
parents:
diff changeset
15 print*,"hello"
kono
parents:
diff changeset
16 end if
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 end program main