Debian Codegraph @

gcc/testsuite/gfortran.dg/gomp/appendix-a/a.17.1.f90

raw
1 ! { dg-do compile }
2 SUBROUTINE A17_1_WRONG()
3 INTEGER:: I
4 REAL:: R
5 EQUIVALENCE(I,R)
6 !$OMP PARALLEL
7 !$OMP ATOMIC
8 I=I+1
9 !$OMP ATOMIC
10 R = R + 1.0
11 ! incorrect because I and R reference the same location
12 ! but have different types
13 !$OMP END PARALLEL
14 END SUBROUTINE A17_1_WRONG