2017-11-09 Steven G. Kargl <kargl@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / iall_iany_iparity_2.f90
blob4872ddf7f2ab1fe0f0bb3eb8eca0810267a77ab2
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
4 ! PR fortran/38282
6 implicit none
7 integer :: a(2,1)
9 a(1,1) = 35
10 a(2,1) = -74
12 if (iand(a(1,1),a(2,1)) /= iall(a)) stop 1 ! { dg-error " .iall. at .1. has no IMPLICIT type" }
14 if (ior(a(1,1),a(2,1)) /= iany(a)) stop 1 ! { dg-error " .iany. at .1. has no IMPLICIT type" }
16 if (ieor(a(1,1),a(2,1)) /= iparity(a)) stop 1 ! { dg-error " .iparity. at .1. has no IMPLICIT type" }
18 end