1! { dg-do compile } 2! Verify that an error is correctly reported if multiple identifiers are given 3! with a bind(c) statement that has a NAME= specifier. 4module m 5 use iso_c_binding 6 implicit none 7 integer(c_int), bind(C, name="") :: a,b ! { dg-error "Multiple identifiers" } 8 integer(c_int), bind(C, name="bob") :: c,d ! { dg-error "Multiple identifiers" } 9 integer(c_int) :: e,f 10 bind(c, name="foo") :: e,f ! { dg-error "Multiple identifiers" } 11end module m 12 13