mirror of
https://github.com/autc04/Retro68.git
synced 2024-12-03 10:49:58 +00:00
18 lines
255 B
C
18 lines
255 B
C
/* { 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 ();
|
|
}
|