Set num_threads to 50 on 32-bit hppa in two libgomp loop tests
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / struct-copyout-1.c
blob501a0e12732dc1b5765633e127cedd006e00e350
1 #include <assert.h>
3 struct str1 {
4 int a;
5 int b;
6 };
8 struct str2 {
9 int c;
10 int d;
11 struct str1 s;
14 int
15 main (int argc, char *argv[])
17 struct str2 t;
19 t.c = 1;
20 t.d = 2;
21 t.s.a = 3;
22 t.s.b = 4;
24 #pragma acc enter data copyin(t.s)
26 #pragma acc serial present(t.s) /* { dg-warning "using .vector_length \\(32\\)., ignoring 1" "" { target openacc_nvidia_accel_selected } } */
28 t.s.a = 5;
29 t.s.b = 6;
32 #pragma acc exit data copyout(t.s)
34 assert (t.s.a == 5);
35 assert (t.s.b == 6);
37 return 0;