7 struct S
{ int s
, t
; };
12 int x
= 5, y
= 6, err
= 0;
13 struct S u
= { 7, 8 }, v
= { 9, 10 };
14 double s
= 11.5, t
= 12.5;
15 #pragma omp target private (x, u, s) firstprivate (y, v, t) map(from:err)
20 err
= (x
!= 6 || y
!= 6
21 || u
.s
!= 9 || u
.t
!= 10 || v
.s
!= 9 || v
.t
!= 10
22 || s
!= 12.5 || t
!= 12.5);
30 || u
.s
!= 12 || u
.t
!= 10 || v
.s
!= 9 || v
.t
!= 14
31 || s
!= 15.0 || t
!= 15.5)
34 if (err
|| x
!= 5 || y
!= 6
35 || u
.s
!= 7 || u
.t
!= 8 || v
.s
!= 9 || v
.t
!= 10
36 || s
!= 11.5 || t
!= 12.5)