(root)/
gcc-13.2.0/
libgomp/
testsuite/
libgomp.oacc-c/
print-1.c
       1  /* Ensure that printf on the offload device works.  */
       2  
       3  /* { dg-do run } */
       4  /* { dg-output "The answer is 42(\n|\r\n|\r)+" } */
       5  
       6  #include <stdio.h>
       7  
       8  int var = 42;
       9  
      10  int
      11  main ()
      12  {
      13  #pragma acc parallel
      14      {
      15        printf ("The answer is %d\n", var);
      16      }
      17  }