repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* cfgloopmanip.c (duplicate_loop_to_header_edge): Cleanup profile
[official-gcc.git]
/
gcc
/
testsuite
/
gfortran.dg
/
associate_17.f90
blob
5c39cf06247a6c71b9b166b94d79d1a938ceee5e
1
! { dg-do run }
2
! Test the fix for PR61406
3
! Contributed by Adam Hirst <adam@aphirst.karoo.co.uk>
4
program
test
5
implicit none
6
real
::
theta
=
1.0
7
8
associate
(
n
=> [
cos
(
theta
),
sin
(
theta
)])
9
if
(
abs
(
norm2
(
n
) -
1.0
) .
gt
.
1.0e-4
)
call
abort
10
end
associate
11
12
end program
test