1 ! RUN: %python %S/test_errors.py %s %flang_fc1
3 ! The BIND statement specifies the BIND attribute for a list of variables and
12 procedure(proc
) :: pc1
13 !ERROR: Only variable and named common block can be in BIND statement
15 !ERROR: Only variable and named common block can be in BIND statement
18 !ERROR: Only variable and named common block can be in BIND statement
21 !PORTABILITY: Global name 'm' conflicts with a module
22 !PORTABILITY: Name 'm' declared in a module should not have the same name as the module
23 bind(c
) :: m
! no error for implicit type variable
28 !ERROR: Only variable and named common block can be in BIND statement
31 enum
, bind(c
) ! no error
32 enumerator
:: SUNDAY
, MONDAY
35 integer :: x
, y
, z
= 1
37 bind(c
) :: x
, /blk
/, z
! no error for variable and common block
39 bind(c
) :: implicit_i
! no error for implicit type variable
41 !ERROR: 'implicit_blk' appears as a COMMON block in a BIND statement but not in a COMMON statement
42 bind(c
) :: /implicit_blk
/
46 subroutine sub() bind(c
)