Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/elemental_args_check_3.f90 @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! Check for constraints restricting arguments of ELEMENTAL procedures. ! Contributed by Daniel Kraft, d@domob.eu. PROGRAM main IMPLICIT NONE CONTAINS IMPURE ELEMENTAL SUBROUTINE foobar & (a, & ! { dg-error "must be scalar" } b, & ! { dg-error "POINTER attribute" } c, & ! { dg-error "ALLOCATABLE attribute" } d) ! { dg-error "must have its INTENT specified or have the VALUE attribute" } INTEGER, INTENT(IN) :: a(:) INTEGER, POINTER, INTENT(IN) :: b INTEGER, ALLOCATABLE, INTENT(IN) :: c INTEGER :: d END SUBROUTINE foobar END PROGRAM main