1 ; RUN: llvm-link %s %p/module-flags-1-b.ll -S -o - | sort | FileCheck %s 2 3 ; Test basic functionality of module flags. 4 5 ; CHECK: !0 = metadata !{i32 1, metadata !"foo", i32 37} 6 ; CHECK: !1 = metadata !{i32 2, metadata !"bar", i32 42} 7 ; CHECK: !2 = metadata !{i32 1, metadata !"mux", metadata !3} 8 ; CHECK: !3 = metadata !{metadata !"hello world", i32 927} 9 ; CHECK: !4 = metadata !{i32 1, metadata !"qux", i32 42} 10 ; CHECK: !llvm.module.flags = !{!0, !1, !2, !4} 11 12 !0 = metadata !{ i32 1, metadata !"foo", i32 37 } 13 !1 = metadata !{ i32 2, metadata !"bar", i32 42 } 14 !2 = metadata !{ i32 1, metadata !"mux", metadata !{ metadata !"hello world", i32 927 } } 15 16 !llvm.module.flags = !{ !0, !1, !2 } 17