PR target/83368
[official-gcc.git] / gcc / testsuite / gfortran.dg / common_20.f90
blob836a9ecb3e4ebaf34338f0041f155292baac8a79
1 ! { dg-do compile }
2 ! { dg-options "-std=f2003" }
4 ! PR fortran/48858
6 subroutine test
7 integer :: l, m
8 common /g/ l ! { dg-error "Fortran 2008: COMMON block 'g' with binding label at .1. sharing the identifier with global non-COMMON-block entity at .2." }
9 common /jj/ m ! { dg-error "Global name 'jj' at .1. is already being used as a COMMON at .2." }
10 bind(C,name="bar") :: /g/
11 bind(C,name="foo") :: /jj/
12 end
14 subroutine g ! { dg-error "Fortran 2008: COMMON block 'g' with binding label at .1. sharing the identifier with global non-COMMON-block entity at .2." }
15 call jj() ! { dg-error "Global name 'jj' at .1. is already being used as a COMMON at .2." }
16 end