Retro68/gcc/libgomp/testsuite/libgomp.c-c++-common/function-not-offloaded.c
Wolfgang Thaller 6fbf4226da gcc-9.1
2019-06-20 20:10:10 +02:00

17 lines
355 B
C

/* { dg-do link } */
/* { dg-excess-errors "unresolved symbol foo, lto1, mkoffload and lto-wrapper fatal errors" { target offload_device_nonshared_as } } */
/* { dg-additional-sources "function-not-offloaded-aux.c" } */
#pragma omp declare target
int var;
#pragma omp end declare target
extern void foo ();
int
main ()
{
#pragma omp target
foo ();
}