Break circular dependency between FIR dialect and utilities
[llvm-project.git] / flang / test / Semantics / declarations04.f90
blobf061cb9e5300fa516d06d752a9206b83bbf9dbcb
1 ! RUN: %python %S/test_errors.py %s %flang_fc1
2 ! test global name conflicts
4 subroutine ext1
5 end
7 subroutine ext2
8 !ERROR: Two entities have the same global name 'ext1'
9 common /ext1/ x
10 end
12 module ext4
13 contains
14 !ERROR: Two entities have the same global name 'ext2'
15 subroutine foo() bind(c,name="ext2")
16 end
17 !ERROR: Two entities have the same global name 'ext3'
18 subroutine bar() bind(c,name="ext3")
19 end
20 end
22 block data ext3
23 !PORTABILITY: Global name 'ext4' conflicts with a module
24 common /ext4/ x
25 end