testsuite: Fix up gfortran.dg/gomp/strictly*.f90 testcases
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Oct 2021 09:12:55 +0000 (11:12 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 21 Oct 2021 09:17:57 +0000 (11:17 +0200)
commite633f82fb71817f3232688869c1eb59f60eb78ca
tree1bdf1471e7afb9d3eab3f111b1dbb4066c675595
parentc8a889fc0e115d40a2d02f32842655f3eadc8fa1
testsuite: Fix up gfortran.dg/gomp/strictly*.f90 testcases

While these testcases are dg-do compile only, I think it is better not to
give users bad examples and avoid unnecessary data races in testcases (unless
it is exactly what we want to test).  Perhaps one day we'll do some analysis
and warn about data races...

2021-10-21  Jakub Jelinek  <jakub@redhat.com>

* gfortran.dg/gomp/strictly-structured-block-1.f90: Use call do_work
instead of x = x + 1 in places where the latter could be a data race.
* gfortran.dg/gomp/strictly-structured-block-2.f90: Likewise.
* gfortran.dg/gomp/strictly-structured-block-3.f90: Likewise.
gcc/testsuite/gfortran.dg/gomp/strictly-structured-block-1.f90
gcc/testsuite/gfortran.dg/gomp/strictly-structured-block-2.f90
gcc/testsuite/gfortran.dg/gomp/strictly-structured-block-3.f90