Fix build on sparc64-linux-gnu.
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / declare-simd-3.f90
blob85cea9cab0ae1a40ed10ad70e9dbe686e2cf293c
1 ! Don't compile this anywhere, it is just auxiliary
2 ! file compiled together with declare-simd-2.f90
3 ! to verify inter-CU module handling of omp declare simd.
4 ! { dg-do compile { target { lp64 && { ! lp64 } } } }
6 subroutine bar
7 use declare_simd_2_mod
8 real :: b(128)
9 integer :: i
11 !$omp simd
12 do i = 1, 128
13 b(i) = i * 2.0
14 end do
15 !$omp simd
16 do i = 1, 128
17 b(i) = foo (7.0_8, 5 * i, b(i))
18 end do
19 do i = 1, 128
20 if (b(i).ne.(7.0 + 10.0 * i * i)) STOP 1
21 end do
22 end subroutine bar