3 use, intrinsic :: iso_c_binding
5 subroutine pA() bind(c, name='printf') ! { dg-error "Procedure 'pb' with binding label 'printf' at .1. uses the same global identifier as entity at .2." }
6 print *, 'hello from pA'
11 use, intrinsic :: iso_c_binding
14 subroutine pB() bind(c, name='printf') ! { dg-error "Procedure 'pb' with binding label 'printf' at .1. uses the same global identifier as entity at .2." }
15 print *, 'hello from pB'
21 use B ! { dg-error "Can't open module file" }
23 ! { dg-excess-errors "compilation terminated" }