aboutsummaryrefslogtreecommitdiff
path: root/libgomp/testsuite/libgomp.oacc-fortran/error_stop-3.f
diff options
context:
space:
mode:
Diffstat (limited to 'libgomp/testsuite/libgomp.oacc-fortran/error_stop-3.f')
-rw-r--r--libgomp/testsuite/libgomp.oacc-fortran/error_stop-3.f20
1 files changed, 20 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.oacc-fortran/error_stop-3.f b/libgomp/testsuite/libgomp.oacc-fortran/error_stop-3.f
new file mode 100644
index 00000000000..9c217f14ea1
--- /dev/null
+++ b/libgomp/testsuite/libgomp.oacc-fortran/error_stop-3.f
@@ -0,0 +1,20 @@
+! { dg-do run }
+
+ PROGRAM MAIN
+ IMPLICIT NONE
+
+ PRINT *, "CheCKpOInT"
+!$ACC PARALLEL
+ ERROR STOP "SiGN"
+!$ACC END PARALLEL
+ PRINT *, "WrONg WAy"
+
+ END PROGRAM MAIN
+
+! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
+! { dg-output "ERROR STOP SiGN(\n|\r\n|\r)+" }
+! PR85463. The "minimal" libgfortran implementation used with nvptx
+! offloading is a little bit different.
+! { dg-output "Error termination.*" { target { ! openacc_nvidia_accel_selected } } }
+! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
+! { dg-shouldfail "" }