hppa64: Fix fmt_f_default_field_width_3.f90 and fmt_g_default_field_width_3.f90
[official-gcc.git] / gcc / testsuite / gfortran.dg / proc_ptr_common_2.f90
blobf49c0a3f86a93cc9f9432ab09bfa3f4d61b0e462
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 ! { dg-error "PROCEDURE attribute conflicts with COMMON attribute" }
17 common s
18 call s() ! { dg-error "PROCEDURE attribute conflicts with COMMON attribute" }
20 end