| 1 |
! { dg-do run } |
| 2 |
! { dg-options "-std=f2008 -pedantic" } |
| 3 |
! { dg-shouldfail "Zero width in format descriptor" } |
| 4 |
|
| 5 |
character(10) :: fmt = "(d0.2)" |
| 6 |
print fmt, 3. |
| 7 |
end |
| 8 |
|
| 9 |
! { dg-output "Fortran runtime error: Zero width in format descriptor" } |
| 10 |
|