1 ; RUN: llvm-link %s %p/module-flags-3-b.ll -S -o - | sort | FileCheck %s 2 3 ; Test 'require' behavior. 4 5 ; CHECK: !0 = metadata !{i32 1, metadata !"foo", i32 37} 6 ; CHECK: !1 = metadata !{i32 1, metadata !"bar", i32 42} 7 ; CHECK: !2 = metadata !{i32 3, metadata !"foo", metadata !3} 8 ; CHECK: !3 = metadata !{metadata !"bar", i32 42} 9 ; CHECK: !llvm.module.flags = !{!0, !1, !2} 10 11 !0 = metadata !{ i32 1, metadata !"foo", i32 37 } 12 !1 = metadata !{ i32 1, metadata !"bar", i32 42 } 13 14 !llvm.module.flags = !{ !0, !1 } 15