gcc/testsuite/gfortran.dg/parens_6.f90
raw| 1 | ! { dg-do run } |
| 2 | ! { dg-options "-std=legacy" } |
| 3 | ! |
| 4 | ! PR fortran/33626 |
| 5 | ! Types were not always propagated correctly |
| 6 | logical(kind=1) :: i, j |
| 7 | integer(kind=1) :: a, b |
| 8 | character*1 :: c, d |
| 9 | if (any( (/ kind(i .and. j), kind(.not. (i .and. j)), kind((a + b)), & |
| 10 | kind((42_1)), kind((j .and. i)), kind((.true._1)), & |
| 11 | kind(c // d), kind((c) // d), kind((c//d)) /) /= 1 )) STOP 1 |
| 12 | if (any( (/ len(c // d), len((c) // d), len ((c // d)) /) /= 2)) STOP 2 |
| 13 | end |