Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/proc_ptr_common_2.f90 @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
! { dg-do compile } ! PR fortran/36592 ! ! Procedure Pointers inside COMMON blocks. ! ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>. abstract interface subroutine foo() bind(C) end subroutine foo end interface procedure(foo), pointer, bind(C) :: proc common /com/ proc,r ! { dg-error "PROCEDURE attribute conflicts with COMMON attribute" } common s call s() ! { dg-error "PROCEDURE attribute conflicts with COMMON attribute" } end