Retro68/gcc/libgomp/testsuite/libgomp.oacc-fortran/error_stop-1.f

21 lines
586 B
FortranFixed
Raw Normal View History

2018-12-28 15:30:48 +00:00
! { dg-do run }
PROGRAM MAIN
IMPLICIT NONE
PRINT *, "CheCKpOInT"
!$ACC PARALLEL
ERROR STOP
!$ACC END PARALLEL
PRINT *, "WrONg WAy"
END PROGRAM MAIN
! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
! { dg-output "ERROR STOP (\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 "" }