Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/elemental_function_4.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do compile } ! ! Tests the fix for PR83999, where the invalid function 'f' caused an ICE. ! ! Contributed by Gerhard Steinmetz <gscfq@t-online.de> ! program p type t integer :: a end type type(t) :: x(3) x = f() print *, x contains elemental function f() result(z) ! { dg-error "must have a scalar result" } type(t), pointer :: z(:) end end