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