2 ! { dg-options "-finit-local-zero -fbackslash" }
10 end program init_flag_1
12 ! Test some initializations for both implicitly and
13 ! explicitly declared local variables.
18 if (r1 /= 0.0) call abort
19 if (r2(2) /= 0.0) call abort
20 if (r3(5,5) /= 0.0) call abort
21 if (r4 /= 0.0) call abort
22 end subroutine real_test
24 subroutine logical_test
27 if (l1 .neqv. .false.) call abort
28 if (l2(2) .neqv. .false.) call abort
29 end subroutine logical_test
35 if (i1 /= 0) call abort
36 if (i2(2) /= 0) call abort
37 if (i3(5,5) /= 0) call abort
38 if (i4 /= 0) call abort
39 end subroutine int_test
41 subroutine complex_test
44 if (c1 /= (0.0,0.0)) call abort
45 if (c2(1,1) /= (0.0,0.0)) call abort
46 end subroutine complex_test
52 if (c1 /= '\0') call abort
53 if (c2 /= '\0\0\0\0\0\0\0\0') call abort
54 if (c3(1) /= '\0\0\0\0\0\0\0\0') call abort
55 if (c3(5) /= '\0\0\0\0\0\0\0\0') call abort
56 if (c4(5) /= '\0') call abort
57 end subroutine char_test