Retro68/gcc/libgomp/testsuite/libgomp.oacc-c-c++-common/pr83046.c

26 lines
286 B
C
Raw Normal View History

2018-12-28 15:30:48 +00:00
/* { dg-do link } */
#define N 100
int
main ()
{
int a[N];
int i, x;
int c;
c = 1;
#pragma acc parallel loop
for (i = 0; i < 100; i++)
a[i] = 0;
if (c)
__builtin_unreachable ();
#pragma acc parallel loop
for (i = 0; i < 100; i++)
a[i] = 1;
return 0;
}