annotate gcc/testsuite/gfortran.dg/func_decl_2.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! { dg-do compile }
kono
parents:
diff changeset
2 ! Test fix for PR16943 in which the double typing of
kono
parents:
diff changeset
3 ! N caused an error.
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by Paul Thomas <pault@gcc.gnu.org>
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 program bug8
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 stop " OK. "
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 contains
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 integer function bugf(M) result (N)
kono
parents:
diff changeset
14 integer, intent (in) :: M
kono
parents:
diff changeset
15 integer :: N ! { dg-error "already has basic type of INTEGER" }
kono
parents:
diff changeset
16 N = M
kono
parents:
diff changeset
17 return
kono
parents:
diff changeset
18 end function bugf
kono
parents:
diff changeset
19 end program bug8