1 /* { dg-skip-if "not yet" { c++ } } */
2 
3 // pragma_external
4 #pragma acc update /* { dg-error "expected declaration specifiers before '#pragma'" } */
5 
6 // pragma_struct
7 struct s_pragma_struct
8 {
9 #pragma acc update /* { dg-error "expected declaration specifiers before '#pragma'" } */
10 };
11 
12 // pragma_param
13 void
f_pragma_param(void)14 f_pragma_param (
15 #pragma acc update /* { dg-error "expected declaration specifiers before '#pragma'" } */
16     void)
17 {
18 }
19 
20 // pragma_stmt
21 void
f2(void)22 f2 (void)
23 {
24   if (0)
25 #pragma acc update /* { dg-error "'#pragma acc update' may only be used in compound statements" } */
26 }
27 
28 // pragma_compound
29 void
f3(void)30 f3 (void)
31 {
32   int i = 0;
33 #pragma acc update device(i)
34 }
35