aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/unsigned_41.f90
blob: 11a5d7b175a59c23c0a1e1713aaef3d72bc01fa9 (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! { dg-options "-funsigned" }
program memain
  unsigned :: a
  a = 1u
  print *,complex(1.0,a) !  { dg-error "shall not be UNSIGNED" }
  print *,complex(a,1.0) !  { dg-error "shall not be UNSIGNED" }
end program memain