PR c++/86342 - -Wdeprecated-copy and system headers.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-fortran / stop-1.f
blobaf267fc08d1dc1d567e16180a70370d2aa9be350
1 ! { dg-do run }
3 PROGRAM MAIN
4 IMPLICIT NONE
6 PRINT *, "CheCKpOInT"
7 !$ACC PARALLEL
8 STOP
9 !$ACC END PARALLEL
10 PRINT *, "WrONg WAy"
12 END PROGRAM MAIN
14 ! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
15 ! PR85463. The "minimal" libgfortran implementation used with nvptx
16 ! offloading is a little bit different.
17 ! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
18 ! { dg-output "$" }
19 ! PR85463. STOP with code zero (as implied here) should actually
20 ! terminate the process normally, but doesn't in the "minimal"
21 ! libgfortran implementation used with nvptx offloading.
22 ! { dg-shouldfail "" { openacc_nvidia_accel_selected } }