1 ! Program to test static variable initialization
2 ! returns the parameter from the previous invocation, or 42 on the first call.
15 character(11) :: c
= "Hello World"
16 character(15) :: d
= "Teststring"
17 integer, dimension(3) :: a
= 1
19 if (any (a
.ne
. 1)) call abort
20 if (test(11) .ne
. 42) call abort
21 ! The second call should return
22 if (test(0) .ne
. 11) call abort
24 if (c
.ne
. "Hello World") call abort
25 if (d
.ne
. "Teststring") call abort