aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/intrinsic_argument_conformance_1.f90
blob: 40f53824221cdf4289e84fce8ab8be5790ddd9d3 (plain)
1
2
3
4
5
6
7
8
9
10
! { dg-do compile }
program main
  real :: av(2), bv(4)
  real :: a(2,2)
  logical :: lo(3,2)
  print *,dot_product(av, bv) ! { dg-error "Different shape" }
  print *,pack(a, lo) ! { dg-error "Different shape" }
  print *,merge(av, bv, lo(1,:)) ! { dg-error "Different shape" }
  print *,matmul(bv,a) ! { dg-error "Different shape" }
end program main