Lang Hames 30f5a3ca15 [MCJIT][ORC] Change test guards to 'UNSUPPORTED: system-darwin'.
These tests were guarded with 'UNSUPPORTED: target={{.*}}-darwin{{.*}}', but
that check may unintentionally pass if LLVM is configured with a host triple
that specifies a specific Darwin flavor, e.g. macOS with
-DLLVM_HOST_TRIPLE:STRING=aarch64-apple-macosx13.0. All darwin flavors should
set 'system-darwin', so this is a safer feature to check.

rdar://134942819
2024-09-27 16:44:38 +10:00

19 lines
270 B
LLVM

; RUN: lli -extra-module %p/Inputs/weak-comdat-def.ll %s
; UNSUPPORTED: system-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
}