Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/c-c++-common/goacc/update-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
void f (void) { #pragma acc update /* { dg-error "'#pragma acc update' must contain at least one 'device' or 'host' or 'self' clause" } */ int i = 0; int a[10]; #pragma acc update device(i) #pragma acc update host(i) #pragma acc update self(i) #pragma acc update device(a[1:3]) #pragma acc update host(a[1:3]) #pragma acc update self(a[1:3]) #pragma acc update device(a(1:3)) /* { dg-error "expected '\\\)' before '\\\(' token" } */ #pragma acc update host(a(1:3)) /* { dg-error "expected '\\\)' before '\\\(' token" } */ #pragma acc update self(a(1:3)) /* { dg-error "expected '\\\)' before '\\\(' token" } */ }