[flang-commits] [flang] [Flang] Adjust pass plugin support to match Clang (PR #174006)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Jan 5 10:43:59 PST 2026
================
@@ -0,0 +1,26 @@
+! Verify that the static and dynamically loaded pass plugins work as expected.
+
+! UNSUPPORTED: system-windows
+
+! REQUIRES: plugins, shell, examples
+
+! RUN: %flang_fc1 -S %s -o - %loadbye \
+! RUN: 2>&1 | FileCheck %s --check-prefix=CHECK-INACTIVE
+
+! RUN: %flang_fc1 -S %s -o - %loadbye -mllvm -last-words \
+! RUN: | FileCheck %s --check-prefix=CHECK-ACTIVE
+
+! RUN: %flang_fc1 -emit-llvm %s -o - %loadbye -mllvm -last-words \
----------------
tarunprabhu wrote:
Would it be better to also check that Bye is not printed in this case? It may make it clearer what the purpose of that test is. It is not obvious that the hooks are not meant to run when -emit-llvm is used.
https://github.com/llvm/llvm-project/pull/174006
More information about the flang-commits
mailing list