summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/exponent_2.f90
blob: 1b917066cd0b326855901bce09a065eda0380cfe (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! { dg-options "-fdefault-integer-8" }
! PR fortran/32942
! Testcase contributed by Dominique d'Humieres <dominiq@lps.ens.fr>.
integer i
real x
x = 3.0
if (2 /= exponent(x)) call abort
i = exponent (x)
if (i /= 2) call abort
end