Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/uninit-if-clause.f95

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-Wuninitialized" }
3
4 program test
5 implicit none
6 logical :: b, b2, bs, b3, b4
7 ! { dg-note {'b' was declared here} {} { target *-*-* } .-1 }
8 ! { dg-note {'b2' was declared here} {} { target *-*-* } .-2 }
9 ! { dg-note {'bs' was declared here} {} { target *-*-* } .-3 }
10 ! { dg-note {'b3' was declared here} {} { target *-*-* } .-4 }
11 ! { dg-note {'b4' was declared here} {} { target *-*-* } .-5 }
12 integer :: data, data2
13
14 !$acc parallel if(b) ! { dg-warning "is used uninitialized" }
15 !$acc end parallel
16
17 !$acc kernels if(b2) ! { dg-warning "is used uninitialized" }
18 !$acc end kernels
19
20 !$acc serial if(bs) ! { dg-warning "is used uninitialized" }
21 !$acc end serial
22
23 !$acc data if(b3) ! { dg-warning "is used uninitialized" }
24 !$acc end data
25
26 !$acc update if(b4) self(data2) ! { dg-warning "is used uninitialized" }
27
28 end program test