repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
target-print-1.c
blob
5857b875ced8549902a877f8e992409709c3a7b6
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 omp target
14
{
15
printf
(
"The answer is %d
\n
"
,
var
);
16
}
17
}