OpenMP-Examples/sources/Example_array_sections.4c.c
2015-01-13 11:38:24 -08:00

22 lines
284 B
C

/*
* @@name: array_sections.4c
* @@type: C
* @@compilable: yes
* @@linkable: no
* @@expect: success
*/
void foo ()
{
int A[30];
#pragma omp target data map( A[0:10] )
{
p = &A[0];
#pragma omp target map( p[3:7] )
{
A[2] = 0;
p[8] = 0;
A[8] = 1;
}
}
}