Debian Codegraph @

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

raw
1 ! { dg-do compile }
2 ! { dg-additional-options "-Wuninitialized" }
3
4 subroutine test_parallel
5 INTEGER :: i
6
7 !$acc parallel
8 i = 1
9 !$acc end parallel
10 end subroutine test_parallel
11
12 subroutine test_serial
13 INTEGER :: i
14
15 !$acc serial
16 i = 1
17 !$acc end serial
18 end subroutine test_serial
19
20
21 subroutine test2_parallel
22 INTEGER :: i
23 ! { dg-note {'i' was declared here} {} { target *-*-* } .-1 }
24
25 !$acc parallel firstprivate (i) ! { dg-warning "is used uninitialized" }
26 i = 1
27 !$acc end parallel
28 end subroutine test2_parallel
29
30 subroutine test2_serial
31 INTEGER :: i
32 ! { dg-note {'i' was declared here} {} { target *-*-* } .-1 }
33
34 !$acc serial firstprivate (i) ! { dg-warning "is used uninitialized" }
35 i = 1
36 !$acc end serial
37 end subroutine test2_serial