view gcc/testsuite/gfortran.dg/associate_17.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
line wrap: on
line source

! { dg-do run }
! Test the fix for PR61406
! Contributed by Adam Hirst  <adam@aphirst.karoo.co.uk>
program test
  implicit none
  real :: theta = 1.0

  associate (n => [cos(theta), sin(theta)])
    if (abs (norm2(n) - 1.0) .gt. 1.0e-4) STOP 1
  end associate

end program test