[flang-commits] [flang] [Flang] Adjust pass plugin support to match Clang (PR #174006)

Alexis Engelke via flang-commits flang-commits at lists.llvm.org
Mon Jan 5 12:35:24 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 \
----------------
aengelke wrote:

> Would it be better to also check that Bye is not printed in this case? 

Added CHECK-LLVM-NOT:  Bye.

> Please add more comments and clarify the difference between this test and pass-plugin.f90.

Added more comments, hope this helps?

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


More information about the flang-commits mailing list