Sign in
gnu
/
gcc
/
646ce0056ed84bcc71d52cb07c61d0bf331f91c3
/
.
/
libgomp
/
testsuite
/
libgomp.oacc-c++
/
declare-1.C
blob: 461b77820ef2ea7a09854b0f4c0ea954af80dbf4 [
file
] [
log
] [
blame
]
#include
<stdlib.h>
template
<
class
T
>
T foo
()
{
T a
,
b
;
#pragma
acc declare create
(
a
)
#pragma
acc parallel copyout
(
b
)
{
a
=
5
;
b
=
a
;
}
return
b
;
}
int
main
(
void
)
{
int
rc
;
rc
=
foo
<int>
();
if
(
rc
!=
5
)
abort
();
return
0
;
}