1 ; RUN: llvm-link %s %S/Inputs/DSOLocalEquivalent.ll -S | FileCheck %s
2 ; RUN: llvm-link %S/Inputs/DSOLocalEquivalent.ll %s -S | FileCheck %s
4 declare void @extern_func()
5 declare void @defined_extern_func()
6 declare hidden void @hidden_func()
8 ; CHECK: define void @call_extern_func() {
9 ; CHECK-NEXT: call void dso_local_equivalent @extern_func()
10 ; CHECK-NEXT: ret void
12 define void @call_extern_func() {
14 call void dso_local_equivalent @extern_func()
18 ; CHECK: define void @call_defined_extern_func() {
19 ; CHECK-NEXT: call void dso_local_equivalent @defined_extern_func()
20 ; CHECK-NEXT: ret void
22 define void @call_defined_extern_func() {
23 call void dso_local_equivalent @defined_extern_func()
27 ; CHECK: define void @call_hidden_func() {
28 ; CHECK-NEXT: call void dso_local_equivalent @hidden_func()
29 ; CHECK-NEXT: ret void
31 define void @call_hidden_func() {
32 call void dso_local_equivalent @hidden_func()