1 void 2 f (void) 3 { 4 #pragma acc update /* { dg-error "'#pragma acc update' must contain at least one 'device' or 'host' or 'self' clause" } */ 5 6 int i = 0; 7 int a[10]; 8 #pragma acc update device(i) 9 #pragma acc update host(i) 10 #pragma acc update self(i) 11 #pragma acc update device(a[1:3]) 12 #pragma acc update host(a[1:3]) 13 #pragma acc update self(a[1:3]) 14 #pragma acc update device(a(1:3)) /* { dg-error "expected '\\\)' before '\\\(' token" } */ 15 #pragma acc update host(a(1:3)) /* { dg-error "expected '\\\)' before '\\\(' token" } */ 16 #pragma acc update self(a(1:3)) /* { dg-error "expected '\\\)' before '\\\(' token" } */ 17 } 18