bolt/deps/llvm-18.1.8/llvm/test/ExecutionEngine/Orc/weak-comdat.ll
2025-02-14 19:21:04 +01:00

18 lines
283 B
LLVM

; RUN: lli -extra-module %p/Inputs/weak-comdat-def.ll %s
; UNSUPPORTED: target={{.*}}-darwin{{.*}}
declare i32 @g()
$f = comdat nodeduplicate
define weak i32 @f() comdat {
entry:
%0 = call i32 @g()
ret i32 %0
}
define i32 @main() {
entry:
%0 = call i32 @f()
ret i32 %0
}