Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgomp / testsuite / libgomp.c-c++-common / variable-not-offloaded.c
blobfe2a8b26242707d28bed8ec155397e9b928e7b6c
1 /* { dg-do link } */
2 /* { dg-excess-errors "lto1, mkoffload and lto-wrapper fatal errors" { target { offload_target_nvptx || offload_target_amdgcn } } } */
4 int var; /* { dg-error "variable 'var' has been referenced in offloaded code but hasn't been marked to be included in the offloaded code" "" { target { offload_target_nvptx || offload_target_amdgcn } } } */
6 #pragma omp declare target
7 void __attribute__((noinline, noclone))
8 foo (void)
10 var++;
12 #pragma omp end declare target
14 int
15 main ()
17 #pragma omp target
18 foo ();