bolt/deps/llvm-18.1.8/flang/test/Driver/pass-plugin-not-found.f90
2025-02-14 19:21:04 +01:00

9 lines
524 B
Fortran

! Check the correct error diagnostic is reported when a pass plugin shared object isn't found
! REQUIRES: plugins, shell
! RUN: not %flang -fpass-plugin=X.Y %s 2>&1 | FileCheck %s --check-prefix=ERROR
! RUN: not %flang_fc1 -emit-llvm -o /dev/null -fpass-plugin=X.Y %s 2>&1 | FileCheck %s --check-prefix=ERROR
! The exact wording of the error message depends on the system dlerror.
! ERROR: error: unable to load plugin 'X.Y': 'Could not load library 'X.Y': {{.*}}{{[[:space:]].*}}{{.*}}: {{.*}}{{[Nn]}}o such file{{.*}}'