mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-12 08:47:41 +01:00
92b3138b83
Updated dependencies: * GMP 6.2.1 * ISL 0.24 * MPL 1.2.1 * MPFR 4.1.0 The dependencies were pulled in by running the ./contrib/download_prerequisites script and then manually removing the symbolic links and archives, and renaming the directories (i.e mv isl-0.24 to isl)
39 lines
533 B
C
39 lines
533 B
C
#include <assert.h>
|
|
|
|
struct str1 {
|
|
int a;
|
|
int b;
|
|
};
|
|
|
|
struct str2 {
|
|
int c;
|
|
int d;
|
|
struct str1 s;
|
|
};
|
|
|
|
int
|
|
main (int argc, char *argv[])
|
|
{
|
|
struct str2 t;
|
|
|
|
t.c = 1;
|
|
t.d = 2;
|
|
t.s.a = 3;
|
|
t.s.b = 4;
|
|
|
|
#pragma acc enter data copyin(t.s)
|
|
|
|
#pragma acc serial present(t.s) /* { dg-warning "using .vector_length \\(32\\)., ignoring 1" "" { target openacc_nvidia_accel_selected } } */
|
|
{
|
|
t.s.a = 5;
|
|
t.s.b = 6;
|
|
}
|
|
|
|
#pragma acc exit data copyout(t.s)
|
|
|
|
assert (t.s.a == 5);
|
|
assert (t.s.b == 6);
|
|
|
|
return 0;
|
|
}
|