blob: 9a94195b6f111c64bbc9105d5bf7a5ddcb557865 [file] [log] [blame]
! Ensure that printf on the offload device works.
! { dg-do run }
! { dg-output "The answer is 42(\n|\r\n|\r)+" }
! { dg-xfail-if "no write for nvidia" { openacc_nvidia_accel_selected } }
program main
implicit none
integer :: var = 42
!$acc parallel
write (0, '("The answer is ", I2)') var
!$acc end parallel
end program main