Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
variable-not-offloaded.c
blob: 8e10271b97fea1c4e61cdf1cb6fb88354a1d5633 [
file
] [
log
] [
blame
]
/* { dg-do link } */
int
var
;
/* { dg-error "'var' requires a 'declare' directive for use in a 'routine' function" } */
#pragma
acc routine
void
__attribute__
((
noinline
,
noclone
))
foo
(
void
)
{
var
++;
}
int
main
()
{
#pragma
acc parallel
foo
();
}