1 ! RUN: %python %S/test_errors.py %s %flang_fc1
5 module subroutine dump()
8 integer, bind(c
, name
="a") :: x1
13 !ERROR: A variable with BIND(C) attribute may only appear in the specification part of a module
14 integer, bind(c
, name
="b") :: x3
15 !ERROR: A variable with BIND(C) attribute may only appear in the specification part of a module
16 integer, bind(c
) :: x4
20 !ERROR: A variable with BIND(C) attribute may only appear in the specification part of a module
21 integer, bind(c
, name
="c") :: x5
22 !ERROR: A variable with BIND(C) attribute may only appear in the specification part of a module
23 integer, bind(c
) :: x6
27 !ERROR: A variable with BIND(C) attribute may only appear in the specification part of a module
28 integer, bind(c
, name
="d") :: x7
29 !ERROR: A variable with BIND(C) attribute may only appear in the specification part of a module
30 integer, bind(c
) :: x8