* c-c++-common/Wrestrict.c (test_strcpy_range): Revert latest change.
[official-gcc.git] / libgomp / testsuite / libgomp.oacc-c-c++-common / kernels-alias-ipa-pta-2.c
blobe8d65df8208f777e1be912288cccc6a1d1769f7b
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 = (unsigned int *)malloc (N * sizeof (unsigned int));
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] != 0 || b[0] != 1 || c[0] != 0)
22 abort ();
24 free (a);
25 free (b);
26 free (c);