Support -std=f2018
[official-gcc.git] / libgomp / testsuite / libgomp.hsa.c / complex-align-2.c
blobb2d7acff443ca34c80f1a53a52f6a5d91278aa8d
1 #pragma omp declare target
2 _Complex int *g;
3 #pragma omp end declare target
7 _Complex float f(void);
9 int
10 main ()
12 _Complex int y;
13 #pragma omp target map(from:y)
15 _Complex int x;
16 g = &x;
17 __imag__ x = 1;
18 __real__ x = 2;
19 y = x;
22 if ((__imag__ y != 1)
23 || (__real__ y != 2))
24 __builtin_abort ();
25 return 0;