Increase timeout factor for hppa*-*-* in gcc.dg/long_branch.c
[official-gcc.git] / gcc / testsuite / gfortran.dg / PR94104b.f90
blobee7d640b926e135321fe0f097c798287090416c6
1 ! { dg-do compile }
2 ! { dg-options "-std=f2008" }
4 ! PR fortran/94104
7 program diag_p
8 implicit none
10 integer, parameter :: n = 7
12 integer :: a(n)
13 integer, target :: b(n)
15 a = 1
16 print *, sumf(a) ! { dg-error "Actual argument for 'a' at .1. must be a pointer or a valid target" }
17 print *, sumf(b)
19 contains
21 function sumf(a) result(s)
22 integer, pointer, intent(in) :: a(:)
24 integer :: s
26 s = sum(a)
27 end function sumf
29 end program diag_p