| 1 |
! { dg-do compile } |
| 2 |
! { dg-options "-fallow-invalid-boz" } |
| 3 |
! PR fortran/91650 |
| 4 |
! Code contributed by Gerhard Steinmetz. |
| 5 |
program p |
| 6 |
character(len=60) str |
| 7 |
write(str,*) b'10110' ! { dg-warning "cannot appear in an output IO list" } |
| 8 |
if (trim(adjustl(str)) /= '22') stop 1 |
| 9 |
write(str,*) o'10110' ! { dg-warning "cannot appear in an output IO list" } |
| 10 |
if (trim(adjustl(str)) /= '4168') stop 2 |
| 11 |
write(str,*) z'10110' ! { dg-warning "cannot appear in an output IO list" } |
| 12 |
if (trim(adjustl(str)) /= '65808') stop 3 |
| 13 |
end |