aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/logical_assignment_1.f90
blob: e3c14f5b3929ea19d88d9f53f96adf58f8f91bee (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
! PR 79312 - assigning a logical value to a real
! is invalid.
! Test case by John Harper.
program emptyarray5
  implicit none
  real a(0)
  a = [logical::] ! { dg-error "Cannot convert LOGICAL" }
  print *,size(a)
end program emptyarray5