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