1 ; RUN: llvm-link %s %S/Inputs/metadata-function.ll -S | FileCheck %s
2 ; RUN: llvm-link %S/Inputs/metadata-function.ll %s -S | FileCheck %s
4 ; CHECK-DAG: define weak void @foo() !weak ![[B:[0-9]+]] {
5 define linkonce void @foo() !linkonce !0 {
9 ; CHECK-DAG: define void @bar() !bar ![[A:[0-9]+]] {
10 define void @bar() !bar !0 {
15 ; CHECK-DAG: define void @baz() !baz ![[B]] {
18 ; CHECK-DAG: define void @a() !a ![[A]] {
19 ; CHECK-DAG: define void @b() !b ![[B]] {
20 define void @a() !a !0 {
24 ; CHECK-DAG: define %[[HandleType:[A-Za-z]+]] @init.Handle() {
25 ; CHECK-DAG: declare !types ![[C:[0-9]+]] %[[HandleType]] @init.AltHandle()
26 ; CHECK-DAG: define void @uses.AltHandle() {
27 %Handle = type { i8* }
28 define %Handle @init.Handle() {
32 ; CHECK-DAG: ![[A]] = !{!"a"}
33 ; CHECK-DAG: ![[B]] = !{!"b"}
34 ; CHECK-DAG: ![[C]] = !{%[[HandleType]] undef}