RISC-V: Regenerate opt urls.
[official-gcc.git] / gcc / testsuite / gfortran.dg / modulo_check.f90
blob8819a2f8e4e9e3be48dada6bece5dbab5241a4a3
1 ! { dg-do compile }
2 ! Test checks on modulo with p == 0
3 program p
4 logical :: a(2) = (modulo([2,3],0) == 0) ! { dg-error "shall not be zero" }
5 integer :: b = count(modulo([2,3],0) == 0) ! { dg-error "shall not be zero" }
6 integer :: c = all(modulo([2,3],0) == 0) ! { dg-error "shall not be zero" }
7 integer :: d = any(modulo([2,3],0) == 0) ! { dg-error "shall not be zero" }
8 end program