aboutsummaryrefslogtreecommitdiffstats
path: root/test/Linker/broken.ll
blob: 8aefe4e6a37dfdde40ba655c5198501c5ddfed92 (plain)
1
2
3
4
5
6
7
8
; RUN: not llvm-link -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
}