Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/arith_divide_no_check.f @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fno-range-check" } ! This test executes all code paths in gfc_arith_divide ! when executed along with it's companion test ! arith_divide.f implicit none integer i,j real a,b complex c,d i = 10/40 j = 10/0! { dg-error "Division by zero at" } a = 10.0/40.0 b = 10.0/0.0 c = (1.0,1.0)/(10.0,40.0) d = (1.0,10.)/(0.0,0.0) end