Add support for ARMv8-R architecture
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / kernels-alias-ipa-pta-3.c
blobdd8ca871d59afb1aab48ab1a5ce6f79f77cfe4c6
1 /* { dg-additional-options "-fipa-pta" } */
3 #include <stdlib.h>
5 #define N 2
7 int
8 main (void)
10 unsigned int *a = (unsigned int *)malloc (N * sizeof (unsigned int));
11 unsigned int *b = a;
12 unsigned int *c = (unsigned int *)malloc (N * sizeof (unsigned int));
14 #pragma acc kernels pcopyout (a[0:N], b[0:N], c[0:N])
16 a[0] = 0;
17 b[0] = 1;
18 c[0] = a[0];
21 if (a[0] != 1 || b[0] != 1 || c[0] != 1)
22 abort ();
24 free (a);
25 free (c);