* ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
[official-gcc.git] / gcc / testsuite / c-c++-common / goacc / pragma_context.c
blobfe50b75304bb05b57acaab4de6ed96c659180c43
1 /* { dg-skip-if "not yet" { c++ } } */
3 // pragma_external
4 #pragma acc update /* { dg-error "expected declaration specifiers before '#pragma'" } */
6 // pragma_struct
7 struct s_pragma_struct
9 #pragma acc update /* { dg-error "expected declaration specifiers before '#pragma'" } */
12 // pragma_param
13 void
14 f_pragma_param (
15 #pragma acc update /* { dg-error "expected declaration specifiers before '#pragma'" } */
16 void)
20 // pragma_stmt
21 void
22 f2 (void)
24 if (0)
25 #pragma acc update /* { dg-error "'#pragma acc update' may only be used in compound statements" } */
28 // pragma_compound
29 void
30 f3 (void)
32 int i = 0;
33 #pragma acc update device(i)