Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/func_decl_2.f90 @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! Test fix for PR16943 in which the double typing of ! N caused an error. ! ! Contributed by Paul Thomas <pault@gcc.gnu.org> ! program bug8 implicit none stop " OK. " contains integer function bugf(M) result (N) integer, intent (in) :: M integer :: N ! { dg-error "already has basic type of INTEGER" } N = M return end function bugf end program bug8