Skip to content

Commit d17ad77

Browse files
authored
[flang][Semantics] Testcase for declaration conflict with named-const… (#111556)
…ruct
1 parent eaea5f6 commit d17ad77

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 :: xyz
5+
!ERROR: 'xyz' is already declared in this scoping unit
6+
xyz: do i = 1, 100
7+
enddo xyz
8+
end subroutine
9+
10+

0 commit comments

Comments
 (0)