2017-02-20 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_common_2.f90
blobf401c3a15c379d000681035ae2fc93b4e5ff6257
1 ! { dg-do compile }
3 ! PR fortran/36592
5 ! Procedure Pointers inside COMMON blocks.
7 ! Contributed by Tobias Burnus <burnus@gcc.gnu.org>.
9 abstract interface
10 subroutine foo() bind(C)
11 end subroutine foo
12 end interface
14 procedure(foo), pointer, bind(C) :: proc
15 common /com/ proc,r
17 common s
18 call s() ! { dg-error "PROCEDURE attribute conflicts with COMMON attribute" }
20 end