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