llvm-project/flang/test/Driver/pass-plugin.f90
Alexis Engelke 277069e8c1
[Flang] Adjust pass plugin support to match Clang (#174006)
- Pass plugins can use LLVM options, matching #173287.
- Pass plugins can run a hook before codegen, matching #171872.
- Pass plugins are now tested whenever they can be built, matching
#171998.

Plugins currently don't work on AIX, tracked in #172203.
2026-01-07 09:59:17 +00:00

21 lines
497 B
Fortran

! This tests that the plugin is correctly added to and executed as part of the
! optimization pipeline.
! UNSUPPORTED: system-windows
! REQUIRES: plugins, examples
! Plugins are currently broken on AIX, at least in the CI.
! XFAIL: system-aix
! RUN: %flang -S %s %loadbye -mllvm -wave-goodbye -o /dev/null \
! RUN: 2>&1 | FileCheck %s
! RUN: %flang_fc1 -S %s %loadbye -mllvm -wave-goodbye -o /dev/null \
! RUN: 2>&1 | FileCheck %s
! CHECK: Bye: empty_
subroutine empty
end subroutine empty