[AArch64] Merge stores of D-register values with different modes
[official-gcc.git] / gcc / testsuite / gfortran.dg / implied_do_io_5.f90
blob988d0040e9184115526acc363340591cc9aa30e0
1 ! { dg-do run }
2 ! { dg-additional-options "-ffrontend-optimize" }
3 ! PR fortran/85387 - incorrect output
4 ! Original test case by Vittorio Zecca
5 program main
6 real :: efg_pw(2,2)
7 character (len=80) :: c1, c2
8 efg_pw(1,1)=1
9 efg_pw(2,1)=2
10 efg_pw(1,2)=3
11 efg_pw(2,2)=4
12 write (unit=c1,fmt='(3F12.5)') ((efg_pw(i, j), i=1, j), j=1, 2)
13 write (unit=c2,fmt='(3F12.5)') 1.0, 3.0, 4.0
14 if (c1 /= c2) stop 1
15 end