2 ! { dg-options "-finit-integer=1 -finit-logical=true -finit-real=zero" }
9 end program init_flag_2
11 ! Test some initializations for both implicitly and
12 ! explicitly declared local variables.
17 if (r1
/= 0.0) call abort
18 if (r2(2) /= 0.0) call abort
19 if (r3(5,5) /= 0.0) call abort
20 if (r4
/= 0.0) call abort
21 end subroutine real_test
23 subroutine logical_test
26 if (l1
.neqv
. .true
.) call abort
27 if (l2(2) .neqv
. .true
.) call abort
28 end subroutine logical_test
34 if (i1
/= 1) call abort
35 if (i2(2) /= 1) call abort
36 if (i3(5,5) /= 1) call abort
37 if (i4
/= 1) call abort
38 end subroutine int_test
40 subroutine complex_test
43 if (c1
/= (0.0,0.0)) call abort
44 if (c2(1,1) /= (0.0,0.0)) call abort
45 end subroutine complex_test