xref: /llvm-project/llvm/test/Feature/load_plugin_error.ll (revision 799955eb176042999b4d12a901b1c33b42035014)
1; REQUIRES: plugins, x86-registered-target
2; UNSUPPORTED: target={{.*windows.*}}
3
4; RUN: not opt < %s -load-pass-plugin=%t/nonexistent.so -disable-output 2>&1 | FileCheck %s
5
6; RUN: opt %s -o %t.o
7; RUN: not llvm-lto2 run -load-pass-plugin=%t/nonexistent.so %t.o -o %t \
8; RUN:     -r %t.o,test,plx 2>&1 | \
9; RUN:   FileCheck %s
10
11; CHECK: Could not load library {{.*}}nonexistent.so
12
13target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14target triple = "x86_64-unknown-linux-gnu"
15
16define void @test() {
17  ret void
18}
19