1 /* Verify OMP instances of variables with address space. */
3 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
4 /* { dg-require-effective-target offload_device_nonshared_as } */
13 // a = 123; // SIGSEGV
15 #pragma omp target map(alloc: a) map(from: b)
17 a
= 321; // no SIGSEGV (given 'offload_device_nonshared_as')
18 asm volatile ("" : : "g" (&a
) : "memory");