1 ; RUN: rm -rf %t && split-file %s %t && cd %t
2 ; RUN: llvm-link a.ll b.ll -S -o - 2>&1 | FileCheck %s
4 ; CHECK: !0 = !{i32 8, !"foo", i16 2}
5 ; CHECK-NEXT: !1 = !{i32 8, !"bar", i64 3}
6 ; CHECK-NEXT: !2 = !{i32 8, !"only_in_a", i32 0}
7 ; CHECK-NEXT: !3 = !{i32 8, !"required_in_b", i32 3}
8 ; CHECK-NEXT: !4 = !{i32 8, !"only_in_b", i32 0}
9 ; CHECK-NEXT: !5 = !{i32 3, !"require", !6}
10 ; CHECK-NEXT: !6 = !{!"required_in_b", i32 3}
13 !0 = !{ i32 8, !"foo", i16 2 }
14 !1 = !{ i32 8, !"bar", i64 4 }
15 !2 = !{ i32 8, !"only_in_a", i32 4 }
16 !3 = !{ i32 8, !"required_in_b", i32 3 }
18 !llvm.module.flags = !{ !0, !1, !2, !3 }
21 !0 = !{ i32 8, !"foo", i16 3 }
22 !1 = !{ i32 8, !"bar", i64 3 }
23 !2 = !{ i32 8, !"only_in_b", i32 3 }
24 !3 = !{ i32 8, !"required_in_b", i32 3 }
25 !4 = !{ i32 3, !"require", !{!"required_in_b", i32 3} }
27 !llvm.module.flags = !{ !0, !1, !2, !3, !4 }