1.23
2.0
acw/focus-triggers
main
test-branch
| Line | |
|---|
| 1 | !!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!
|
|---|
| 2 | !!! Copyright (c) 2017-20, Lawrence Livermore National Security, LLC
|
|---|
| 3 | !!! and DataRaceBench project contributors. See the DataRaceBench/COPYRIGHT file for details.
|
|---|
| 4 | !!!
|
|---|
| 5 | !!! SPDX-License-Identifier: (BSD-3-Clause)
|
|---|
| 6 | !!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!
|
|---|
| 7 |
|
|---|
| 8 | !A function argument passed by value should be private inside the function.
|
|---|
| 9 | !Variable i is read only. No data race pairs.
|
|---|
| 10 |
|
|---|
| 11 | module global
|
|---|
| 12 | implicit none
|
|---|
| 13 | contains
|
|---|
| 14 | subroutine f1(i)
|
|---|
| 15 | integer, value :: i
|
|---|
| 16 | i = i+1
|
|---|
| 17 | end subroutine f1
|
|---|
| 18 | end module global
|
|---|
| 19 |
|
|---|
| 20 | program DRB080_func_arg_orig_yes
|
|---|
| 21 | use omp_lib
|
|---|
| 22 | use global
|
|---|
| 23 | implicit none
|
|---|
| 24 |
|
|---|
| 25 | integer :: i
|
|---|
| 26 | i = 0
|
|---|
| 27 |
|
|---|
| 28 | !$omp parallel
|
|---|
| 29 | call f1(i)
|
|---|
| 30 | !$omp end parallel
|
|---|
| 31 |
|
|---|
| 32 | if (i /= 0) then
|
|---|
| 33 | print 100, i
|
|---|
| 34 | 100 format ('i =',i3)
|
|---|
| 35 | end if
|
|---|
| 36 | end program
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.