2018-04-19 10:53:38 +02: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)+" }
|
2019-12-05 08:38:53 +00:00
|
|
|
!
|
|
|
|
! In gfortran's main program, libfortran's set_options is called - which sets
|
|
|
|
! compiler_options.backtrace = 1 by default. For an offload libgfortran, this
|
|
|
|
! is never called and, hence, "Error termination." is never printed. Thus:
|
|
|
|
! { dg-output "Error termination.*" { target { ! { openacc_nvidia_accel_selected || openacc_amdgcn_accel_selected } } } }
|
|
|
|
!
|
|
|
|
! PR85463:
|
2018-04-19 10:53:38 +02:00
|
|
|
! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
|
2019-12-05 08:38:53 +00:00
|
|
|
!
|
2018-04-19 10:53:38 +02:00
|
|
|
! { dg-shouldfail "" }
|