aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/ExecutionEngine/OrcLazy/comdat-functions.ll
blob: 895410da98a11880df568d2ad0610d0cf1866fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; REQUIRES: system-windows
; RUN: lli -jit-kind=orc-lazy -extra-module %p/Inputs/comdat-functions.ll %s
; Check if crashing comdat any functions are not causing duplicate symbol error.

$baz = comdat any

define i32 @baz() comdat {
entry:
  ret i32 0
}

define i32 @main(i32 %argc, i8** %argv) {
entry:
  %call = tail call i32 @baz()
  ret i32 %call
}