llvm-for-llvmta/test/Linker/broken.ll

9 lines
240 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; RUN: not llvm-link -disable-debug-info-type-map -o /dev/null %s 2>&1 | FileCheck %s
; CHECK: broken.ll: error: input module is broken!
define i32 @foo(i32 %v) {
%first = add i32 %v, %second
%second = add i32 %v, 3
ret i32 %first
}