RISC-V: Refactor Dynamic LMUL codes
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr86045.f90
blob685672f1dbdd720934a6072fe331c4a6cc65dce0
1 ! { dg-do compile }
2 program p
3 logical :: a(2) = (mod([2,3],0) == 0) ! { dg-error "shall not be zero" }
4 integer :: b = count(mod([2,3],0) == 0) ! { dg-error "shall not be zero" }
5 integer :: c = all(mod([2,3],0) == 0) ! { dg-error "shall not be zero" }
6 integer :: d = any(mod([2,3],0) == 0) ! { dg-error "shall not be zero" }
7 end