Skip to content

Commit a8e5e2f

Browse files
committed
[flang][Semantics] Testcase for declaration conflict with named-construct
1 parent 2edd897 commit a8e5e2f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
!RUN: %python %S/test_errors.py %s %flang_fc1
2+
3+
subroutine foo()
4+
integer :: nxloop
5+
!ERROR: 'nxloop' is already declared in this scoping unit
6+
nxloop: do i = 1, 100
7+
enddo nxloop
8+
end subroutine
9+
10+

0 commit comments

Comments
 (0)