xref: /llvm-project/llvm/test/ExecutionEngine/OrcLazy/comdat-functions.ll (revision 38ef56880a99e6382f4a1f9113646295953c0b16)
1; REQUIRES: system-windows
2; RUN: lli -jit-kind=orc-lazy -extra-module %p/Inputs/comdat-functions.ll %s
3; Check if crashing comdat any functions are not causing duplicate symbol error.
4
5$baz = comdat any
6
7define i32 @baz() comdat {
8entry:
9  ret i32 0
10}
11
12define i32 @main(i32 %argc, i8** %argv) {
13entry:
14  %call = tail call i32 @baz()
15  ret i32 %call
16}
17