]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Add OpenACC 'host_data' testing to 'gfortran.dg/goacc/unexpected-end.f90'
authorThomas Schwinge <thomas@codesourcery.com>
Wed, 15 Sep 2021 08:25:53 +0000 (10:25 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 15 Sep 2021 08:25:53 +0000 (10:25 +0200)
Use underscore instead of space in 'host_data'.

Follow-up to recent commit 33fdbbe4ce6055eb858096d01720ccf94aa854ec
"Fortran: Add missing ST_OMP_END_SCOPE handling [PR102313]".

gcc/testsuite/
* gfortran.dg/goacc/unexpected-end.f90: Add OpenACC 'host_data'
testing.

gcc/testsuite/gfortran.dg/goacc/unexpected-end.f90

index 442724fea83880393897c54bce772caa1220d940..e9db47b3270414c4beadad07920d8a950e4c9fd4 100644 (file)
@@ -4,7 +4,7 @@
 
 !$acc end DATA  ! { dg-error "Unexpected !.ACC END DATA" }
 
-!$acc end HOST DATA  ! { dg-error "Unclassifiable OpenACC directive" }
+!$acc end HOST_DATA  ! { dg-error "Unexpected !.ACC END HOST_DATA" }
 
 !$acc end KERNELS  ! { dg-error "Unexpected !.ACC END KERNELS" }
 
@@ -20,4 +20,6 @@
 
 !$acc end SERIAL LOOP  ! { dg-error "Unexpected !.ACC END SERIAL LOOP" }
 
+!$acc end EUPHORBIA LATHYRIS  ! { dg-error "Unclassifiable OpenACC directive" }
+
 end