view gcc/testsuite/gfortran.dg/elemental_intrinsic_1.f03 @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

! { 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