Retro68/gcc/gcc/testsuite/gfortran.dg/elemental_intrinsic_1.f03
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

12 lines
377 B
Fortran

! { dg-do compile }
! Conformance-checking of arguments was not done for intrinsic elemental
! subroutines, check this works now.
! This is the test from PR fortran/35681, comment #1 (second program).
integer, dimension(10) :: ILA1 = (/1,2,3,4,5,6,7,8,9,10/)
call mvbits ((ILA1((/9/))), 2, 4, ILA1, 3) ! { dg-error "Different shape" }
write (*,'(10(I3))') ila1
end