summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr56015.f90
blob: a615f663fe3dff233393d8b7d301faa09d0daa88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! PR middle-end/56015
! { dg-do run }
! { dg-options "-O3 -ffast-math -fno-inline" }

program pr56015
  implicit none
  complex*16 p(10)
  p(:) = (0.1d0, 0.2d0)
  p(:) = (0.0d0, 1.0d0) * p(:)
  call foo (p)
contains
  subroutine foo (p)
    complex*16 p(10)
    if (any (p .ne. (-0.2d0, 0.1d0))) call abort
  end subroutine
end program pr56015