mirror of
https://review.haiku-os.org/buildtools
synced 2025-02-12 08:47:41 +01:00
35 lines
401 B
C
35 lines
401 B
C
/* { dg-do run } */
|
|
|
|
#include <stdlib.h>
|
|
|
|
#define N 100
|
|
|
|
int data[N];
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
int n = N, b = 3;
|
|
#pragma acc parallel num_workers(2)
|
|
{
|
|
int c;
|
|
if (n)
|
|
c = 0;
|
|
else
|
|
c = b;
|
|
|
|
#pragma acc loop worker
|
|
for (int i = 0; i < n; i++)
|
|
data[i] = 1;
|
|
|
|
if (c)
|
|
data[0] = 2;
|
|
}
|
|
|
|
for (int i = 0; i < n; i++)
|
|
if (data[i] != 1)
|
|
abort ();
|
|
|
|
return 0;
|
|
}
|