* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / goacc / update-1.c
blob701ef36364361b01f6ca27c92aff6304747e9867
1 void
2 f (void)
4 #pragma acc update /* { dg-error "'#pragma acc update' must contain at least one 'device' or 'host' or 'self' clause" } */
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" } */