gcc/testsuite/gfortran.dg/iall_iany_iparity_2.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=f2003" } |
| 3 | ! |
| 4 | ! PR fortran/38282 |
| 5 | ! |
| 6 | implicit none |
| 7 | integer :: a(2,1) |
| 8 | |
| 9 | a(1,1) = 35 |
| 10 | a(2,1) = -74 |
| 11 | |
| 12 | if (iand(a(1,1),a(2,1)) /= iall(a)) stop 1 ! { dg-error " .iall. at .1. has no IMPLICIT type" } |
| 13 | |
| 14 | if (ior(a(1,1),a(2,1)) /= iany(a)) stop 1 ! { dg-error " .iany. at .1. has no IMPLICIT type" } |
| 15 | |
| 16 | if (ieor(a(1,1),a(2,1)) /= iparity(a)) stop 1 ! { dg-error " .iparity. at .1. has no IMPLICIT type" } |
| 17 | |
| 18 | end |