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