[flang-commits] [flang] [Flang] Add `INLINEALWAYS` Compiler Directive (PR #192674)
Jack Styles via flang-commits
flang-commits at lists.llvm.org
Mon Apr 20 03:14:01 PDT 2026
================
@@ -0,0 +1,26 @@
+! Check the appropriate flags are added to inline functions when inlinealways is used
+
+! RUN: %flang_fc1 -emit-hlfir %s -o - | FileCheck %s
+! RUN: %flang_fc1 -emit-hlfir %s 2>&1 | FileCheck %s --check-prefix=CHECK-WARN
+
+subroutine test_function()
+ !DIR$ INLINEALWAYS test_function
+end subroutine
+
+subroutine test_function2()
+end subroutine
+
+subroutine test_function3()
+ !DIR$ INLINEALWAYS wrong_func
----------------
Stylie777 wrote:
I've moved the CHECK lines here to be below the respective functions and adjusted the test to reflect the changes to the checks in Lowering/Semantics.
https://github.com/llvm/llvm-project/pull/192674
More information about the flang-commits
mailing list