d: Add language reference section to documentation files.
[official-gcc.git] / libgomp / testsuite / libgomp.fortran / target-print-1.f90
blob327bb22cb6d976653bd30b1476a9563fbc25f578
1 ! Ensure that write on the offload device works.
3 ! { dg-do run }
4 ! { dg-output "The answer is 42(\n|\r\n|\r)+" }
6 ! Separate file 'target-print-1-nvptx.f90' for nvptx offloading.
7 ! { dg-skip-if "separate file" { offload_target_nvptx } }
9 program main
10 implicit none
11 integer :: var = 42
13 !$omp target
14 write (0, '("The answer is ", I2)') var
15 !$omp end target
17 end program main