view gcc/testsuite/gfortran.dg/promotion_4.f90 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }
! { dg-options "-fdefault-real-10" }
! { dg-require-effective-target fortran_real_10 }
!
! PR 82143: add a -fdefault-real-16 flag
!
! Contributed by Janus Weil <janus@gcc.gnu.org>

real :: r
real(kind=4) :: r4
real(kind=8) :: r8
double precision :: d
if (kind(r4) /= 4) STOP 1
if (kind(r8) /= 8) STOP 2
if (kind(r) /= 10) STOP 3
if (kind(d)  < 10) STOP 4
end