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