2 ! Test case prepared by Jerry DeLisle <jvdelisle@gcc.gnu.org>
3 ! Test of decimal="comma" in namelist and complex
5 real :: a(10) = [ (i*1.3, i=1,10) ]
8 character(36) :: complex
11 open(99,file="mynml",form="formatted",decimal="point",status="replace")
12 write(99,nml=nm,decimal="comma")
15 read(99,nml=nm,decimal="comma")
16 if (any (a /= [ (i*1.3, i=1,10) ])) call abort
17 close(99, status="delete")
20 write(complex,*,decimal="comma") c
21 if (complex.ne." (3,12299991;4,45599985)") call abort
23 read(complex,*,decimal="comma") c
24 if (complex.ne." (3,12299991;4,45599985)") call abort