Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.fortran/pr34020.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 1830386684a0 |
children |
line wrap: on
line source
! PR fortran/34020 ! { dg-do run } subroutine atomic_add(lhs, rhs) real lhs, rhs !$omp atomic lhs = rhs + lhs end external atomic_add real lhs, rhs integer i lhs = 0 rhs = 1 !$omp parallel do num_threads(8) shared(lhs, rhs) do i = 1, 300000 call atomic_add(lhs, rhs) enddo if (lhs .ne. 300000) stop 1 end