[flang-commits] [flang] d17ad77 - [flang][Semantics] Testcase for declaration conflict with named-const… (#111556)

via flang-commits flang-commits at lists.llvm.org
Tue Oct 8 11:57:06 PDT 2024


Author: Krzysztof Parzyszek
Date: 2024-10-08T13:57:02-05:00
New Revision: d17ad77c959933286d9f30a38d050d239a6f4378

URL: https://github.com/llvm/llvm-project/commit/d17ad77c959933286d9f30a38d050d239a6f4378
DIFF: https://github.com/llvm/llvm-project/commit/d17ad77c959933286d9f30a38d050d239a6f4378.diff

LOG: [flang][Semantics] Testcase for declaration conflict with named-const… (#111556)

…ruct

Added: 
    flang/test/Semantics/named-construct-declaration-conflict.f90

Modified: 
    

Removed: 
    


################################################################################
diff  --git a/flang/test/Semantics/named-construct-declaration-conflict.f90 b/flang/test/Semantics/named-construct-declaration-conflict.f90
new file mode 100644
index 00000000000000..d3e72e221368cd
--- /dev/null
+++ b/flang/test/Semantics/named-construct-declaration-conflict.f90
@@ -0,0 +1,10 @@
+!RUN: %python %S/test_errors.py %s %flang_fc1
+
+subroutine foo()
+  integer :: xyz
+!ERROR: 'xyz' is already declared in this scoping unit
+  xyz: do i = 1, 100
+  enddo xyz
+end subroutine
+
+


        


More information about the flang-commits mailing list