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 (), bitcast (void ()* ()* @foo_resolve to void ()*)
7 ; CHECK-DAG: define internal void ()* @foo_resolve() {
9 ; CHECK-DAG: @bar = ifunc void (), bitcast (void ()* ()* @bar_resolve to void ()*)
10 ; CHECK-DAG: define internal void ()* @bar_resolve() {
16 @foo = ifunc void (), bitcast (void ()* ()* @foo_resolve to void ()*)
17 @bar = ifunc void (), bitcast (void ()* ()* @bar_resolve to void ()*)
19 define internal void ()* @foo_resolve() {
23 define internal void ()* @bar_resolve() {