16 #pragma omp parallel private(A) if(0) shared(B) default(none)
21 if (A != 7) { __builtin_printf("ERROR 1: %d (!= 7) omp parallel\n", A); __builtin_abort (); }
22 if (B != 5) { __builtin_printf("ERROR 1a: %d\n", B); __builtin_abort (); }
24 #pragma omp parallel private(A)if(0) shared(B) default(none)
29 if (A != 8) { __builtin_printf("ERROR 2: %d (!= 8) omp parallel\n", A); __builtin_abort (); }
30 if (B != 6) { __builtin_printf("ERROR 2a: %d\n", B); __builtin_abort (); }
33 #pragma omp target private(A) map(from:B) device(dev)
38 if (A != 8) { __builtin_printf("ERROR 3: %d (!= 8) omp target\n", A); __builtin_abort (); }
39 if (B != 7) { __builtin_printf("ERROR 3a: %d\n", B); __builtin_abort (); }
41 #pragma omp target private(A) map(from:B) device(dev)
46 if (A != 9) { __builtin_printf("ERROR 4: %d (!= 9) omp target\n", A); __builtin_abort (); }
47 if (B != 8) { __builtin_printf("ERROR 4a: %d\n", B); __builtin_abort (); }
63 #pragma omp parallel private(C) if(0) shared(D) default(none)
68 if (C != 7) { __builtin_printf("ERROR 1: %d (!= 7) omp parallel\n", C);__builtin_abort (); }
69 if (D != 5) { __builtin_printf("ERROR 1a: %d\n", D);__builtin_abort (); }
71 #pragma omp parallel private(C)if(0) shared(D) default(none)
76 if (C != 8) { __builtin_printf("ERROR 2: %d (!= 8) omp parallel\n", C);__builtin_abort (); }
77 if (D != 6) { __builtin_printf("ERROR 2a: %d\n", D);__builtin_abort (); }
79 #pragma omp target private(C) map(from:D) defaultmap(none) device(dev)
84 if (C != 8) { __builtin_printf("ERROR 3: %d (!= 8) omp target\n", C);__builtin_abort (); }
85 if (D != 7) { __builtin_printf("ERROR 3a: %d\n", D);__builtin_abort (); }
87 #pragma omp target private(C) map(from:D) defaultmap(none) device(dev)
92 if (C != 9) { __builtin_printf("ERROR 4: %d (!= 9) omp target\n", C); __builtin_abort (); }
93 if (D != 8) { __builtin_printf("ERROR 4a: %d\n", D); }
100 for (int dev = 0; dev <= omp_get_num_devices (); dev++)
108 for (int dev = 0; dev <= omp_get_num_devices (); dev++)