Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
libgomp
/
testsuite
/
libgomp.c
/
target-print-1.c
blob: 5857b875ced8549902a877f8e992409709c3a7b6 [
file
] [
log
] [
blame
]
/* Ensure that printf on the offload device works. */
/* { dg-do run } */
/* { dg-output "The answer is 42(\n|\r\n|\r)+" } */
#include
<stdio.h>
int
var
=
42
;
int
main
()
{
#pragma
omp target
{
printf
(
"The answer is %d\n"
,
var
);
}
}