llvm-for-llvmta/test/Linker/module-max-warn.ll

13 lines
648 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: llvm-link %s %p/Inputs/module-max-warn.ll -S -o - 2>&1 | FileCheck %s
; 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)
; 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)
; CHECK: !0 = !{i32 7, !"Combine Max and Warn", i32 4}
; CHECK: !1 = !{i32 7, !"Combine Warn and Max", i32 5}
!llvm.module.flags = !{!0, !1}
!0 = !{i32 7, !"Combine Max and Warn", i32 2}
!1 = !{i32 2, !"Combine Warn and Max", i32 3}