[flang-commits] [flang] [Flang][Parser] Handle compiler directives inside INTERFACE blocks (PR #198516)
CHANDRA GHALE via flang-commits
flang-commits at lists.llvm.org
Wed May 27 05:56:04 PDT 2026
================
@@ -0,0 +1,42 @@
+! RUN: %python %S/test_modfile.py %s %flang_fc1
+! Check that recognized compiler directives in interface blocks
+! survive module file serialization and parsing.
+
+module m
+ interface
+ subroutine sub(x)
+!dir$ ignore_tkr(t) x
+ real, intent(in) :: x
+ end subroutine
+ end interface
+end module
+
+!Expect: m.mod
+!module m
+! interface
+! subroutine sub(x)
+! real(4),intent(in)::x
+! !dir$ ignore_tkr(t) x
----------------
chandraghale wrote:
Thanks!! Right, I think there isn't a recognized directive that would go between procedure declarations and survive module serialization at this point, we can skip such test for now.
https://github.com/llvm/llvm-project/pull/198516
More information about the flang-commits
mailing list