diff mbox series

[committed] gfortran.dg/gomp/requires-4.f90: Fix !$omp syntax

Message ID 436d1834-cf60-e3af-209c-f1a2f8a96b2c@mentor.com
State New
Headers show
Series [committed] gfortran.dg/gomp/requires-4.f90: Fix !$omp syntax | expand

Commit Message

Tobias Burnus Nov. 27, 2020, 10:50 a.m. UTC
Found when grepping & post commit. There were two !$omp issues in
the testcase – which (currently) do not show up due to the previous
(and intended) errors.

Tobias

-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
diff mbox series

Patch

commit 6fb9b4c97690c5750e49c32fa2a373a7c66c5d46
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Nov 27 11:45:14 2020 +0100

    gfortran.dg/gomp/requires-4.f90: Fix !$omp clause
    
    gcc/testsuite/
            * gfortran.dg/gomp/requires-4.f90: Fix typo in '!$omp' clause.

diff --git a/gcc/testsuite/gfortran.dg/gomp/requires-4.f90 b/gcc/testsuite/gfortran.dg/gomp/requires-4.f90
index 0dc5e69da04..b17aceb898b 100644
--- a/gcc/testsuite/gfortran.dg/gomp/requires-4.f90
+++ b/gcc/testsuite/gfortran.dg/gomp/requires-4.f90
@@ -30,7 +30,7 @@  contains
     !$omp end target
   end subroutine
   subroutine bar
-    !$omp requires unified_addres ! { dg-error "must appear in the specification part of a program unit" }
+    !$omp requires unified_address ! { dg-error "must appear in the specification part of a program unit" }
   end subroutine bar
 end
 ! { dg-prune-output "not yet supported" }

commit d78e106e95191f44274c8c9ba196abd6fd5ed558
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Fri Nov 27 11:40:11 2020 +0100

    gfortran.dg/gomp/requires-4.f90: Fix !$omp syntax
    
    gcc/testsuite/
            * gfortran.dg/gomp/requires-4.f90: Fix '!$omp' syntax.

diff --git a/gcc/testsuite/gfortran.dg/gomp/requires-4.f90 b/gcc/testsuite/gfortran.dg/gomp/requires-4.f90
index e0eb4dbc603..0dc5e69da04 100644
--- a/gcc/testsuite/gfortran.dg/gomp/requires-4.f90
+++ b/gcc/testsuite/gfortran.dg/gomp/requires-4.f90
@@ -26,8 +26,8 @@  program main
 !$omp requires reverse_offload
 contains
   subroutine foo
-    !$target
-    !$end target
+    !$omp target
+    !$omp end target
   end subroutine
   subroutine bar
     !$omp requires unified_addres ! { dg-error "must appear in the specification part of a program unit" }