| 1 |
! Ensure that write on the offload device works. |
| 2 |
|
| 3 |
! { dg-do run } |
| 4 |
! { dg-output "The answer is 42(\n|\r\n|\r)+" } |
| 5 |
|
| 6 |
program main |
| 7 |
implicit none |
| 8 |
integer :: var = 42 |
| 9 |
|
| 10 |
!$omp target |
| 11 |
write (0, '("The answer is ", I2)') var |
| 12 |
!$omp end target |
| 13 |
|
| 14 |
end program main |