Files
clang-p2996/flang/test/Driver/pass-plugin-not-found.f90
madanial0 586986a063 [Flang] Add multiline error message support to pass-plugin-not-found (NFC) (#73601)
The error message above has multiple lines on AIX, adding
`{{[[:space:]].*}}` to match multiple lines

Co-authored-by: Mark Danial <mark.danial@ibm.com>
2023-11-30 01:35:03 -05:00

10 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{{.*}}'