Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgomp / testsuite / libgomp.c / target-print-1.c
blob5857b875ced8549902a877f8e992409709c3a7b6
1 /* Ensure that printf on the offload device works. */
3 /* { dg-do run } */
4 /* { dg-output "The answer is 42(\n|\r\n|\r)+" } */
6 #include <stdio.h>
8 int var = 42;
10 int
11 main ()
13 #pragma omp target
15 printf ("The answer is %d\n", var);