summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr32136.f90
blob: 304b7b4a212d0dd37d961069e131169408dd4dd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
! { dg-do run }
! { dg-options "-std=gnu" }
! Tests PR32136, which went away!
!
! Contributed by Tobias Burnus <burnus@gcc.gnu.org>
!
real(kind(0d0)), parameter :: r(1) = &
    transfer(transfer(sqrt(2d0), (/ .true. /) ), (/ 0d0 /), 1)
    if (r(1) .ne. sqrt(2d0)) call abort ()
end