[flang-commits] [flang] [Flang] Add `INLINEALWAYS` Compiler Directive (PR #192674)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Apr 17 09:05:47 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
----------------
eugeneepshteyn wrote:

I see. It's best to keep CHECK lines as close to the original code as possible, so that not to confuse the reviewers. :-)


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


More information about the flang-commits mailing list