view libgomp/testsuite/libgomp.oacc-c-c++-common/crash-1.c @ 122:fb3d53c41846

do not expand code segment
author mir3636
date Thu, 22 Mar 2018 17:37:58 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do link } */

/* For -O0, ICEd in nvptx backend due to unexpected frame size.  */
#pragma acc routine worker
void
worker_matmul (int *c, int i)
{
  int j;

#pragma acc loop
  for (j = 0; j < 4; j++)
    c[j] = j;
}


int
main ()
{
  int c[4];

#pragma acc parallel 
  {
    worker_matmul (c, 0);
  }
  
  return 0;
}