llvm/test/Linker/module-flags-4-a.ll
Peter Collingbourne b7bfc99302 Linker: teach the IR mover to return llvm::Error.
This will be needed in order to consistently return an Error
to clients of the API being developed in D20268.

Differential Revision: http://reviews.llvm.org/D20550

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270967 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 05:21:35 +00:00

11 lines
271 B
LLVM

; RUN: not llvm-link %s %p/module-flags-4-b.ll -S -o - 2>&1 | FileCheck %s
; Test 'require' error.
; CHECK: linking module flags 'bar': does not have the required value
!0 = !{ i32 1, !"foo", i32 37 }
!1 = !{ i32 4, !"bar", i32 927 }
!llvm.module.flags = !{ !0, !1 }