gcc/testsuite/gfortran.dg/nan_4.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-std=gnu -fallow-invalid-boz" } |
| 3 | ! { dg-add-options ieee } |
| 4 | ! |
| 5 | ! PR fortran/34398. |
| 6 | ! |
| 7 | ! Check for invalid numbers in bit-wise BOZ transfers |
| 8 | ! |
| 9 | program test |
| 10 | implicit none |
| 11 | real(4), parameter :: r0 = z'FFFFFFFF' ! { dg-warning "BOZ literal constant" } |
| 12 | real(4) r |
| 13 | data r/z'FFFFFFFF'/ ! { dg-warning "BOZ literal constant" } |
| 14 | r = z'FFFFFFFF' ! { dg-warning "BOZ literal constant" } |
| 15 | end program test |