Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/declare-simd-3.f90 @ 155:da32f4b04d38
fix __code name conflict
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 17:51:46 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
! Don't compile this anywhere, it is just auxiliary ! file compiled together with declare-simd-2.f90 ! to verify inter-CU module handling of omp declare simd. ! { dg-do compile { target { lp64 && { ! lp64 } } } } subroutine bar use declare_simd_2_mod real :: b(128) integer :: i !$omp simd do i = 1, 128 b(i) = i * 2.0 end do !$omp simd do i = 1, 128 b(i) = foo (7.0_8, 5 * i, b(i)) end do do i = 1, 128 if (b(i).ne.(7.0 + 10.0 * i * i)) stop 1 end do end subroutine bar