PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gfortran.dg / parity_2.f90
blob5ff11dab9d919eed65a3e7e3d521485117034073
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008" }
4 ! PR fortran/33197
6 ! Check implementation of PARITY
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