[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / arith_divide_3.f90
blob95682dfdda76e566cb03fe2f85c31c32eb8c9fd2
1 ! { dg-do compile }
2 ! { dg-options "-fcoarray=single" }
3 ! PR 93500 - this used to cause an ICE
5 program p
6 integer :: a(min(2,0)/0) ! { dg-error "Division by zero" }
7 integer, save :: c[min(2,0)/0,*] ! { dg-error "Division by zero|must have constant shape" }
8 integer :: b = lbound(a) ! { dg-error "must be an array" }
9 print *,lcobound(c)
10 end program p
12 subroutine s
13 integer :: a(min(2,0)/0) ! { dg-error "Division by zero" }
14 integer, save :: c[min(2,0)/0,*] ! { dg-error "Division by zero" }
15 integer :: b = lbound(a)
16 print *,lcobound(c)
17 end subroutine s