1 ; RUN: llvm-link %s %p/Inputs/module-max-warn.ll -S -o - 2>&1 | FileCheck %s
3 ; CHECK: warning: linking module flags 'Combine Max and Warn': IDs have conflicting values ('i32 4' from {{.*}}/Inputs/module-max-warn.ll with 'i32 2' from llvm-link)
4 ; CHECK: warning: linking module flags 'Combine Warn and Max': IDs have conflicting values ('i32 5' from {{.*}}/Inputs/module-max-warn.ll with 'i32 3' from llvm-link)
7 ; CHECK: !0 = !{i32 7, !"Combine Max and Warn", i32 4}
8 ; CHECK: !1 = !{i32 7, !"Combine Warn and Max", i32 5}
10 !llvm.module.flags = !{!0, !1}
11 !0 = !{i32 7, !"Combine Max and Warn", i32 2}
12 !1 = !{i32 2, !"Combine Warn and Max", i32 3}