aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/pr56015.f90
blob: 21d9d64280f2072d0e791cc5c7f28ed05b155a97 (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 "-Ofast -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