view libgomp/testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c @ 120:f93fa5091070

fix conv1.c
author mir3636
date Thu, 08 Mar 2018 14:53:42 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-additional-options "-fipa-pta" } */

#include <stdlib.h>

#define N 2

int
main (void)
{
  unsigned int a[N];
  unsigned int b[N];
  unsigned int c[N];

#pragma acc kernels pcopyout (a, b, c)
  {
    a[0] = 0;
    b[0] = 1;
    c[0] = a[0];
  }

  if (a[0] != 0 || b[0] != 1 || c[0] != 0)
    abort ();

  return 0;
}