Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/default_numeric_type_1.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fdump-tree-original" } ! Tests the fix for PR 31222, in which the type of the arguments of abs ! and int below were not detected to be of default numeric type.. ! ! Contributed by Tobias Burnus <burnus@gcc.gnu.org> ! subroutine mysub1(a,b,mode,dis) ! integer :: mode ! real :: dis dimension a(abs(mode)),b(int(dis)) print *, mod write (*,*) abs(mode), nint(dis) end subroutine program testprog call mysub1((/1.,2./),(/1.,2.,3./),-2, 3.2) end