llvm-project/llvm/test/Feature/load_plugin_error.ll
Teresa Johnson 799955eb17
[ThinLTO] Skip opt pipeline and summary wrapper pass on empty modules (#120143)
Follow up to PR118508, to avoid unnecessary compile time for an empty
combind regular LTO module if all modules end up being ThinLTO only.

This required minor changes to a few tests to ensure they weren't empty.
2025-01-10 19:33:20 -08:00

19 lines
524 B
LLVM

; REQUIRES: plugins, x86-registered-target
; UNSUPPORTED: target={{.*windows.*}}
; RUN: not opt < %s -load-pass-plugin=%t/nonexistent.so -disable-output 2>&1 | FileCheck %s
; RUN: opt %s -o %t.o
; RUN: not llvm-lto2 run -load-pass-plugin=%t/nonexistent.so %t.o -o %t \
; RUN: -r %t.o,test,plx 2>&1 | \
; RUN: FileCheck %s
; CHECK: Could not load library {{.*}}nonexistent.so
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
define void @test() {
ret void
}