gcc/libgomp/testsuite/libgomp.oacc-fortran/stop-2.f

30 lines
710 B
FortranFixed
Raw Permalink Normal View History

! { dg-do run }
PROGRAM MAIN
IMPLICIT NONE
! Initialize before the checkpoint, in case this produces any output.
!$ACC PARALLEL
!$ACC END PARALLEL
PRINT *, "CheCKpOInT"
!$ACC PARALLEL
STOP 35
!$ACC END PARALLEL
PRINT *, "WrONg WAy"
END PROGRAM MAIN
! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
! See 'stop-2-nvptx.f' regarding the nvptx offloading XFAIL.
! { dg-output "STOP 35(\n|\r\n|\r)+" { xfail openacc_nvidia_accel_selected } }
!
! PR85463. The 'exit' implementation used with nvptx
! offloading is a little bit different.
! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
! { dg-output "$" }
! { dg-shouldfail "" }