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