]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/testsuite/libgomp.oacc-fortran/stop-3.f
PR85463 '[nvptx] "exit" in offloaded region doesn't terminate process'
[thirdparty/gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / stop-3.f
1 ! { dg-do run }
2
3 PROGRAM MAIN
4 IMPLICIT NONE
5
6 PRINT *, "CheCKpOInT"
7 !$ACC PARALLEL
8 STOP "SiGN"
9 !$ACC END PARALLEL
10 PRINT *, "WrONg WAy"
11
12 END PROGRAM MAIN
13
14 ! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
15 ! { dg-output "STOP SiGN(\n|\r\n|\r)+" }
16 ! PR85463. The "minimal" libgfortran implementation used with nvptx
17 ! offloading is a little bit different.
18 ! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
19 ! { dg-output "$" }
20 ! PR85463. STOP with code zero (as implied here) should actually
21 ! terminate the process normally, but doesn't in the "minimal"
22 ! libgfortran implementation used with nvptx offloading.
23 ! { dg-shouldfail "" { openacc_nvidia_accel_selected } }