view gcc/testsuite/c-c++-common/goacc/if-clause-1.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

/* { dg-skip-if "not yet" { c++ } } */

void
f (void)
{
  struct { int i; } *p;
#pragma acc data copyout(p) if(1) if(1) /* { dg-error "too many 'if' clauses" } */
  ;
#pragma acc update device(p) if(*p) /* { dg-error "used struct type value where scalar is required" } */
}