blob: 78715c69bd5c74a8d2a110c14b2affb370a65be9 [file] [log] [blame]
Dan Gohman6cb8c232010-08-26 15:41:53 +00001; RUN: llvm-link %s %p/metadata-b.ll -S -o - | FileCheck %s
2
3; CHECK: define void @foo(i32 %a)
Duncan P. N. Exon Smith09ba28c2014-12-06 02:29:44 +00004; CHECK: ret void, !attach !0
Dan Gohman6cb8c232010-08-26 15:41:53 +00005; CHECK: define void @goo(i32 %b)
Duncan P. N. Exon Smith09ba28c2014-12-06 02:29:44 +00006; CHECK: ret void, !attach !1
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +00007; CHECK: !0 = !{i32 524334, void (i32)* @foo}
8; CHECK: !1 = !{i32 524334, void (i32)* @goo}
Dan Gohman6cb8c232010-08-26 15:41:53 +00009
10define void @foo(i32 %a) nounwind {
11entry:
Duncan P. N. Exon Smith09ba28c2014-12-06 02:29:44 +000012 ret void, !attach !0
Dan Gohman6cb8c232010-08-26 15:41:53 +000013}
14
Duncan P. N. Exon Smith1ef70ff2014-12-15 19:07:53 +000015!0 = !{i32 524334, void (i32)* @foo}