Fix compilation failure with C++98 compilers
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr65903.f90
blob152f1c231cbafb14b2032bd9cc2b5536a650b437
1 ! { dg-do run }
2 ! { dg-options "-std=gnu" }
3 !
4 character(20) :: astring
6 100 format ("& notblank !")
7 200 format ("& !")
8 300 format ("&!")
10 write(astring,100)
11 if (astring.ne."& notblank !") STOP 1
12 !print *, astring
13 write(astring,200)
14 if (astring.ne."& !") STOP 2
15 !print *, astring
16 write(astring,300)
17 if (astring.ne."&!") STOP 3
18 !print *, astring
20 end