5 ! Contributed by G. Steinmetz
9 integer, parameter :: d(2) = [0,0]
14 print size([1,2],dim
=d(1)) ! { dg-error "'dim' argument of 'size' intrinsic at .1. is not a valid dimension index" }
18 complex, parameter :: x
= 1
20 stop x
! { dg-error "STOP code at .1. must be either INTEGER or CHARACTER type" }
24 integer, parameter :: a(2) = [1, 2]
26 stop a
! { dg-error "STOP code at .1. must be scalar" }
27 stop a(1,1) ! { dg-error "Rank mismatch in array reference at .1. .2/1." }