annotate gcc/testsuite/gfortran.dg/host_assoc_call_2.f90 @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
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 ! Tests the fix for PR36700, in which the call to the function would
kono
parents:
diff changeset
3 ! cause an ICE.
kono
parents:
diff changeset
4 !
kono
parents:
diff changeset
5 ! Contributed by <terry@chem.gu.se>
kono
parents:
diff changeset
6 !
kono
parents:
diff changeset
7 module Diatoms
kono
parents:
diff changeset
8 implicit none
kono
parents:
diff changeset
9 contains
kono
parents:
diff changeset
10 function InitialDiatomicX () result(v4) ! { dg-error "has a type" }
kono
parents:
diff changeset
11 real(kind = 8), dimension(4) :: v4
kono
parents:
diff changeset
12 v4 = 1
kono
parents:
diff changeset
13 end function InitialDiatomicX
kono
parents:
diff changeset
14 subroutine FindDiatomicPeriod
kono
parents:
diff changeset
15 call InitialDiatomicX () ! { dg-error "which is not consistent with the CALL" }
kono
parents:
diff changeset
16 end subroutine FindDiatomicPeriod
kono
parents:
diff changeset
17 end module Diatoms