1 /* { dg-do compile } */
2 /* { dg-additional-options "-Wuninitialized" } */
3 /* { dg-excess-errors "PR70392" { xfail c++ } } */
4 
5 #include <stdbool.h>
6 
7 int
main(void)8 main (void)
9 {
10   int l, l2, l3, l4;
11   bool b, b2, b3, b4;
12   int i, i2;
13 
14   #pragma acc parallel if(l) /* { dg-warning "is used uninitialized in this function" } */
15   ;
16 
17   #pragma acc parallel if(b) /* { dg-warning "is used uninitialized in this function" "" { xfail c++ } } */
18   ;
19 
20   #pragma acc kernels if(l2) /* { dg-warning "is used uninitialized in this function" } */
21   ;
22 
23   #pragma acc kernels if(b2) /* { dg-warning "is used uninitialized in this function" "" { xfail c++ } } */
24   ;
25 
26   #pragma acc data if(l3) /* { dg-warning "is used uninitialized in this function" } */
27   ;
28 
29   #pragma acc data if(b3) /* { dg-warning "is used uninitialized in this function" "" { xfail c++ } } */
30   ;
31 
32   #pragma acc update if(l4) self(i) /* { dg-warning "is used uninitialized in this function" } */
33   ;
34 
35   #pragma acc update if(b4) self(i2) /* { dg-warning "is used uninitialized in this function" "" { xfail c++ } } */
36   ;
37 
38 }
39