aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/promotion_3.f90
blob: 337e45f44e009bc0a89b5e97bcfa2c7fb19341cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { dg-do run }
! { dg-options "-fdefault-real-16" }
! { dg-require-effective-target fortran_real_16 }
!
! 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) /= 16) STOP 3
if (kind(d) /= 16) STOP 4
end