gcc/testsuite/gfortran.dg/parity_2.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=f2008" } |
| 3 | ! |
| 4 | ! PR fortran/33197 |
| 5 | ! |
| 6 | ! Check implementation of PARITY |
| 7 | ! |
| 8 | implicit none |
| 9 | print *, parity([real ::]) ! { dg-error "must be LOGICAL" } |
| 10 | print *, parity([integer ::]) ! { dg-error "must be LOGICAL" } |
| 11 | print *, parity([logical ::]) |
| 12 | print *, parity(.true.) ! { dg-error "must be an array" } |
| 13 | end |