[flang-commits] [flang] [flang][Semantics] Testcase for declaration conflict with named-const… (PR #111556)
via flang-commits
flang-commits at lists.llvm.org
Tue Oct 8 09:51:07 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: Krzysztof Parzyszek (kparzysz)
<details>
<summary>Changes</summary>
…ruct
---
Full diff: https://github.com/llvm/llvm-project/pull/111556.diff
1 Files Affected:
- (added) flang/test/Semantics/named-construct-declaration-conflict.f90 (+10)
``````````diff
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..c96a037888e228
--- /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 :: nxloop
+!ERROR: 'nxloop' is already declared in this scoping unit
+ nxloop: do i = 1, 100
+ enddo nxloop
+end subroutine
+
+
``````````
</details>
https://github.com/llvm/llvm-project/pull/111556
More information about the flang-commits
mailing list