1 ; RUN: split-file %s %t
2 ; RUN: llvm-link %t/a.ll %t/b.ll -S -o - | FileCheck %s
4 ;; Check that ifuncs are linked in properly.
6 ; CHECK-DAG: @foo = ifunc void (), ptr @foo_resolve
7 ; CHECK-DAG: define internal ptr @foo_resolve() {
9 ; CHECK-DAG: @bar = ifunc void (), ptr @bar_resolve
10 ; CHECK-DAG: define internal ptr @bar_resolve() {
16 @foo = ifunc void (), ptr @foo_resolve
17 @bar = ifunc void (), ptr @bar_resolve
19 define internal ptr @foo_resolve() {
23 define internal ptr @bar_resolve() {