[flang-commits] [flang] [FLANG][Semantics] Add check for DATA statement in interface body. (PR #221397)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Sep 14 05:45:07 PDT 2026


================
@@ -0,0 +1,11 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+
+interface
+  subroutine s
+    integer :: x
+    !ERROR: A DATA statement may not appear in an interface body
+    data x /1/
+  end subroutine
+end interface
+
+end
----------------
eugeneepshteyn wrote:

github reports missing end of line

https://github.com/llvm/llvm-project/pull/221397


More information about the flang-commits mailing list